WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. TF28
    Member
    Posted 9 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.

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

  2. George Stephanis
    Automattic Lead Code Monkey
    Plugin Author

    Posted 9 months ago #

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

    That should walk you through the process!

  3. TF28
    Member
    Posted 9 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 9 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 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

Tags

No tags yet.