• Resolved semperaye

    (@semperaye)


    The social sharing plugin for jetpack works great on bbpress when users are NOT logged in, but when they are logged in, the social sharing buttons appear under the reply field. Logged in users who view topics, are not always going to reply, therefore they will never see the sharing buttons.

    How can I move the jetpack social sharing buttons above the reply field, just under the rectangle box that is the bbpress topic?

    I hope this is not complicated…

    Thank you!

    https://wordpress.org/plugins/jetpack/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    How can I move the jetpack social sharing buttons above the reply field, just under the rectangle box that is the bbpress topic?

    We’ve indeed hooked the sharing buttons into the bbp_get_topic_content filter, appearing after each topic content. We didn’t want to hook the buttons into the reply form itself, with a filter like bbp_theme_before_reply_form, because then the buttons wouldn’t be displayed if the topic were closed.

    If you’re okay with the buttons disappearing when the topic is closed, you could try the following:

    1. Start by removing our existing hook with something like remove_filter( 'bbp_get_topic_content', 'sharing_display', 19 ); in a functionality plugin.
    2. Add the buttons again, but hook into bbp_theme_before_reply_form instead, like so:
      add_filter( 'bbp_theme_before_reply_form', 'sharing_display', 19 );

    I haven’t tested it, but it should work.

    Thread Starter semperaye

    (@semperaye)

    Ahhh. Ok sir thank you. I would not want to remove the buttons in any situation.

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

The topic ‘Social sharing & bbpress formatting issue’ is closed to new replies.