Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Print & PDF by PrintFriendly

    (@printfriendly)

    What’s the url of the page?

    We have a filter to exclude the printfriendly button, so will take a look and figure out.

    You can also exclude/include any element with the Print Friendly & PDF Custom Commands. Add class=”print-no” to any element.

    Thread Starter contremaitre

    (@contremaitre)

    the URL is : (there is an htaccess, the login password is pcsf / pcsf)
    http://ffaf.info/formations-sorties-botaniques/

    In this page I loop through the subpages to display a summary of each one.

    So I have the print/pdf button for the whole page, plus a print/pdf button for each subpage.

    Thread Starter contremaitre

    (@contremaitre)

    The print-no class does not remove the button.
    So I still have my double button on my page (see my url above), and I don’t know how to remove them.

    Plugin Author Print & PDF by PrintFriendly

    (@printfriendly)

    Which do you want to remove?

    In the PrintFriendly Plugin settings, which page types do you have the button set to display (homepage/posts, post, manual, etc.)?

    Another option to hide the button you want is via CSS. If you’ve got a selector that will work, like .printfriendly-text2 in your css set to display:none;.

    Thread Starter contremaitre

    (@contremaitre)

    I’d like to keep only the one at the top, or remove them all for this type of page (this page peek a summary of each subpage).

    I display the button in posts, pages and homepage.

    Thread Starter contremaitre

    (@contremaitre)

    Ok, I managed to do it.
    Here is the solution :
    include the content where you want to remove the button in a new div, like :

    <div class="mynoprintpdf">
    </div>

    and add this to your CSS :
    .mynoprintpdf .printfriendly-text2{display:none;}

    Thanks for the help !

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘remove print button in my custum function’ is closed to new replies.