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!

    Thread Starter mrmonster

    (@mrmonster)

    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' );
    Thread Starter mrmonster

    (@mrmonster)

    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:
    https://jetpack.me/2013/06/10/moving-sharing-icons/

    Thread Starter mrmonster

    (@mrmonster)

    Works great — thanks ??

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