• Resolved cptjournal

    (@cptjournal)


    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/

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

    (@jeherve)

    Jetpack Mechanic 🚀

    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.

    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

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

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

    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 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Moving my sharing buttons’ is closed to new replies.