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

  1. TF28
    Posted 2 years 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
    Code Monkey
    Plugin Contributor

    Posted 2 years ago #


    That should walk you through the process!

  3. TF28
    Posted 2 years 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
    Jetpack Mechanic
    Plugin Author

    Posted 2 years ago #

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

    Thanks for the report.

  5. Jeremy Herve
    Jetpack Mechanic
    Plugin Author

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.