Support » Plugin: Sharing buttons shortcode for Jetpack » Default buttons still appear

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

    (@jeherve)

    Jetpack Mechanic

    I’ve tried the original buttons removal hack/plugin

    This solution should work, but the function stopped working in Jetpack 2.5. We’re looking into it, and I’ll post again here as soon as I have some news.

    Thanks for the report!

    Thanks 🙂

    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' );

    Hey, thanks for this! Remind me because it’s been a while and I don’t remember where the blog post is: does this code go into functions.php?

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic

    You can place this code in your theme’s functions.php file, or in a functionality plugin.

    Here is the blog post I was referring to, sorry:
    http://jetpack.me/2013/06/10/moving-sharing-icons/

    Works great — thanks 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Default buttons still appear’ is closed to new replies.