WordPress.org

Ready to get started?Download WordPress

Forums

WP-Print
[resolved] Hide From Print WP 3.9 (4 posts)

  1. wfeu
    Member
    Posted 4 months ago #

    Hi I really like Wp Print.

    Im trying to hide the Sociable plug in at the bottom of the post when printing with WP-Print.

    So far I have had no luck. I found several old posts pre 2010, but none of those solutions worked on word press 3.9.

    Any ideas, or is there a better sharing plugin that hides easily on print page ?

    Thanks

    https://wordpress.org/plugins/wp-print/

  2. Lester Chan
    Member
    Plugin Author

    Posted 4 months ago #

    I am guessing you are using this plugin http://wordpress.org/plugins/sociable/, since I don't use it myself, the below code is not tested

    Add:

    remove_filter('the_content', 'auto_sociable');
    remove_filter('the_excerpt', 'auto_sociable');

    on Line 25 In print.php https://github.com/lesterchan/wp-print/blob/master/print.php

  3. wfeu
    Member
    Posted 4 months ago #

    Nice that worked.

    I edited the print.php inside plugins/ wp-print/

    A note on print.php print-posts.php and print-options.php I had moved these to the root folder of theme I am using. Editing that php file there made no difference.

    Thanks again.

  4. JulieMarie
    Member
    Posted 3 months ago #

    I was able to hide the Jetpack sharedaddy plugin by adding the following as filters on print.php

    remove_filter('the_content', 'sharing_display', 19);
    remove_filter('the_excerpt', 'sharing_display', 19);

    Thanks!

Reply

You must log in to post.

About this Plugin

About this Topic