Support » Plugin: Jetpack - WP Security, Backup, Speed, & Growth » Manually inserting share buttons

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor George Stephanis

    (@georgestephanis)

    http://jetpack.me/2013/06/10/moving-sharing-icons/

    That should walk you through the process!

    Thread Starter TF28

    (@tf28)

    It doesn’t work here I am afraid.
    If I add the respective code to the functions.php the whole content of article disappears.

    Cheers, TF

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    We’ll look into it then, and I’ll get back to you after some testing!

    Thanks for the report.

    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 ‘Manually inserting share buttons’ is closed to new replies.