WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Moving my sharing buttons (5 posts)

  1. cptjournal
    Member
    Posted 9 months ago #

    Hi,

    Just upgraded jetpack and I lost all my settings for my sharing buttons.

    In my theme function php file I entered this code a few months back :

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

    so the sharing buttons wouldn't display, and now they're back and it's impossible to remove them, so i get 2 sets of sharing buttons above each other.
    Here's a link to my blog

    Thanks

    http://wordpress.org/plugins/jetpack/

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 9 months ago #

    Thanks for letting us know. We're aware of this problem with the custom sharing code. We're looking into it, and I'll let you know once I have some news.

  3. alistairn
    Member
    Posted 8 months ago #

    Hey,

    Bump. I'm trying to build a theme and this is super limiting in what it allows you to do with the likes and sharing. I can pretty much only style them and even that is tricky because they're not in a div together. Any word here?

    Thanks

  4. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 8 months ago #

    I'm afraid I have no news yet, but I'll post again here as soon as we can address the issue.

  5. Jeremy Herve
    Happiness Engineer
    Plugin Author

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

Reply

You must log in to post.

About this Plugin

About this Topic