Ready to get started?Download WordPress


Jetpack by WordPress.com
[resolved] Manually inserting share buttons (5 posts)

  1. TF28
    Posted 11 months ago #

    We would like to manually add the sharing buttons.

    Unfortunately the suggested solution doesn't work: http://wordpress.org/support/topic/manually-inserting-share-buttons?replies=13

    Any suggestions anyone?

    Thanks, T.


  2. George Stephanis
    Automattic Lead Code Monkey
    Plugin Author

    Posted 10 months ago #


    That should walk you through the process!

  3. TF28
    Posted 10 months ago #

    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

  4. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 10 months ago #

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

    Thanks for the report.

  5. Jeremy Herve
    Happiness Engineer
    Plugin Author

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


You must log in to post.

About this Plugin

About this Topic


No tags yet.