• Resolved danabree

    (@danabree)


    Hi, is there a way to block the plugin from showing on certain pages? I do not want people to be able to pin from a members-only page. Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author weblizar

    (@weblizar)

    This is possible by some tweak into code.

    Share the page id / post id where you don’t want to load the Pin buttons.

    Thanks

    Thread Starter danabree

    (@danabree)

    Great, thanks very much, the post id is 2520.

    Plugin Author weblizar

    (@weblizar)

    Hi Dana,

    Download the updated plugin from below link:

    https://ufile.io/3ny01

    File modified is pinterest-pin-It-button.php

    Line No. 66

    Hope that will work for you.

    Thanks

    Thread Starter danabree

    (@danabree)

    Great, thanks very much. The change has reversed what I wanted the plugin to do though — I wanted to block 2520 from being pinned, and now only 2520 has the pin buttons showing. I just tested it with another page ID, it’s now making the pin it button show exclusively on that page. If you can put the section of code that needs to be edited, I can update it myself. Thanks so much!

    Plugin Author weblizar

    (@weblizar)

    just reversed the condition like below:

    Line 66

    if($current_post_id == 2520) {

    Reversed by change the == to !=

    if($current_post_id != 2520) {

    Thanks

    Would love to only have the pin button on one page, is it possible to get the modified php file, the link above has now expired

    thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to block plugin from specific page’ is closed to new replies.