Skip to:
Content
Pages
Categories
Search
Top
Bottom

How can I move the topic’s comment box of bbPress from the bottom to the top?

  • @acer55

    Participant

    Regarding bbPress, I’d like to move the comment box from the bottom to the top. That makes it users easier to comment on a topic. I appreciate any help!

Viewing 12 replies - 1 through 12 (of 12 total)
  • @robin-w

    Moderator

    if you do that, then the comment form fills the page, and you have to scroll down to even see the topic, and then scroll up again to reply. If there are several replies, you will want to read them, and again then need to do lots of scrolling rather than have the comment box immediately below the last reply.

    I have not known anyone who has tried this and then not immediately changed it back.

    Better to have a reply button above the topic that takes you instantly to the reply.

    If you are using style back – see the buttons tab

    @acer55

    Participant

    Hello Robin, Thank you for your quick reply.

    Yes, I’ve installed “bbPress style pack” and checked the button tab.
    It seems only four buttons can be added, “a create topic button”, “a subscribe button”, “a profile button”, and “a button for unread topics”.

    Can I create and add “Jumping-to-a-comment-box-button” by bbPress style pack?

    @robin-w

    Moderator

    ooops, let me take a look, I thought that was there – sorry !!

    @robin-w

    Moderator

    sorry for the delay, too many demands on my time, but I’ve added a new reply button in bbp style pack version 5.1.5 just released

    go to

    dashboard>settings>bbp style pack>topic/reply display item 25.

    @acer55

    Participant

    Amazing!Thank you!!

    @acer55

    Participant

    To adjust its font size, I added the following code to “style.css” of the child theme.

    .bsp_button1{ font-size:20px; }

    But, this won’t work. Anything wrong?

    @acer55

    Participant

    Hello Robin,

    I found styling in “Button” tab.
    All my problems are fixed now. Thank you!!

    @robin-w

    Moderator

    Great – glad you are fixed

    @sunshineday77

    Participant

    Hi Robin! Is it possible to move the button so it’s under <div class=”bbp-topic-content”> instead of above it? So right after someone reads the post they can click it?

    @robin-w

    Moderator

    probably (untested)

    add_action ('plugins_loaded' , 'rew_move_reply_button' ) ;
    
    function rew_move_reply_button () {
    	remove_action ( 'bbp_template_before_single_topic', 'bsp_display_reply_button' );
    	add_action ( 'bbp_theme_after_topic_content', 'bsp_display_reply_button' );
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    @sunshineday77

    Participant

    Thank you so much, Robin! That didn’t take, but with these tweaks, it did!

    add_action(‘wp_loaded’, ‘rew_move_reply_button’);

    function rew_move_reply_button() {
    remove_action(‘bbp_template_before_single_topic’, ‘bsp_display_reply_button’, 10);
    add_action(‘bbp_theme_after_topic_content’, ‘bsp_display_reply_button’, 10);
    }

    I appreciate your help!

    @robin-w

    Moderator

    great – glad you are fixed 🙂

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