• Resolved lowlight

    (@lowlight)


    As per instructions in another thread, I used this code in my functions.php to remove the automatic insertion of sharing buttons

    function jptweak_remove_share() {
    	remove_filter( 'the_content', 'sharing_display',19 );
    	remove_filter( 'the_excerpt', 'sharing_display',19 );
    }
    add_action( 'loop_end', 'jptweak_remove_share' );

    However due to a recent update of either Jetpack or WP, the automatic insertion is back, in addition to my manual insertion.

    How can I remove it again?

    https://www.ads-software.com/plugins/jetpack/

Viewing 3 replies - 1 through 3 (of 3 total)
  • I have the same problem! :/

    Plugin Contributor Richard Archambault

    (@richardmtl)

    Hi, thanks for letting us know. We’re aware of this problem and looking into it. I’ll let you know once I have some news.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    We found the issue, and we updated the blog post accordingly: you will now need to use the following code to remove sharing buttons and Likes from the bottom of your posts:

    function jptweak_remove_share() {
        remove_filter( 'the_content', 'sharing_display',19 );
        remove_filter( 'the_excerpt', 'sharing_display',19 );
        remove_filter( 'the_content', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 );
    }
    
    add_action( 'loop_start', 'jptweak_remove_share' );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot hide automatic insertion of Sharing buttons’ is closed to new replies.