Support » Plugin: Print, PDF, Email by PrintFriendly » How to not show the button on certain pages, etc….

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter luuuciano

    (@luuuciano)

    Ok, here the way I solved it, maybe it helps others…

    I have disabled the option to show the button in Pages… and then, in the page.php theme file added

    if (!is_singular( array( 20, 27 ) )) {
    if(function_exists(‘pf_show_link’)){echo pf_show_link();}
    }

    20, 27
    are the ID numbers of my contact & advanced search…

    Thanks a lot for this plugin, it works great!

    Thread Starter luuuciano

    (@luuuciano)

    Oops… I thought it was working… but echo pf_show_link(); is not working at all…
    Do not show anything…
    What should I do to have the function pf_show_link() working on that section?

    Plugin Author Print & PDF by PrintFriendly

    (@printfriendly)

    One method to hide the button on certain pages is via css. Include the following css on pages you do not want the button appearing.

    <style type="text/css" media="all">.printfriendly {display: none!important;}</style>

    Thread Starter luuuciano

    (@luuuciano)

    Thanks! will have that in mind…

    Anyway, I tried adding
    echo pf_show_link();
    to the page.php theme file
    (just that, without any if statment, etc… so, it should work)

    But… it is not printing anything… it is like the function is not present there?
    Do I need to do something else to have the pf_show_link() function working ok on those files?

    Best regards

    Thread Starter luuuciano

    (@luuuciano)

    Finally, I have used this:

    if (!is_page( array( 20,27,88,162,166,169 ) )) {
      if(function_exists('pf_show_link')){
    echo pf_show_link();
    }
    }

    And the pf_show_link() was not working because I NEEDED to select the last check button on the setup… I thought we can use the previous ones, and add it to theme files too

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to not show the button on certain pages, etc….’ is closed to new replies.