Skip to:

Social Sharing on Replies on various threads

  • Learner


    Is there a Plugin / hack to provide for Social Sharing Buttons on each reply on a thread which share that individual reply ( along with its images etc.. ) to a Social Site and not the Topic itself ?

    For eg. say there is a Jokes thread with many jokes. Now I want to share one particular Joke on a Social Site, not the thread itself…..

    Using WP 3.9.2, bbPress 2.5.4

    Site :

Viewing 2 replies - 1 through 2 (of 2 total)

  • Robkk


    really any plugin that has an included insertable template tag will work.

    im going to use jetpack sharing as an example .

    first i take every instance of each default area jetpack sharing shows.(also jetpack likes)

    function jptweak_remove_share() {
        remove_filter( 'the_content', 'sharing_display',19 );
        remove_filter( 'the_excerpt', 'sharing_display',19 );
        if ( class_exists( 'Jetpack_Likes' ) ) {
            remove_filter( 'the_content', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 );
    add_action( 'loop_start', 'jptweak_remove_share' );

    and then i could just display it anywhere on the reply. in loop-single-reply.php

    with this

    if ( function_exists( 'sharing_display' ) ) {
        sharing_display( '', true );

    this code also removes it from content like posts and pages. but you can just manually insert it into your wordpress templates to with the above code.



    im able to do this all using a child theme and copying bbpress templates into my child theme of course, so that i am safe when a new bbpress upgrade happens.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar