WordPress.org

Ready to get started?Download WordPress

Forums

Sharing buttons shortcode for Jetpack
[resolved] Default buttons still appear (7 posts)

  1. mrmonster
    Member
    Posted 5 months ago #

    Using the shortcode works, but I also see the auto-insterted buttons, which defeats the purpose of the shortcode. I've tried shutting off auto-insert, which also kills the shortcode, and I've tried the original buttons removal hack/plugin, but they didn't have any affect.

    Thoughts?

    http://wordpress.org/plugins/jetpack-sharing-butttons-shortcode/

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 5 months ago #

    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!

  3. mrmonster
    Member
    Posted 5 months ago #

    Thanks :)

  4. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 4 months ago #

    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' );
  5. mrmonster
    Member
    Posted 4 months ago #

    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?

  6. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 4 months ago #

    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/

  7. mrmonster
    Member
    Posted 4 months ago #

    Works great -- thanks :)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.