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

    @acer55

    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

    @robin-w

    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

    @acer55

    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

    @robin-w

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


    Robin W
    Moderator

    @robin-w

    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

    @acer55

    Amazing!Thank you!!


    acer55
    Participant

    @acer55

    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

    @acer55

    Hello Robin,

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


    Robin W
    Moderator

    @robin-w

    Great – glad you are fixed


    sunshineday77
    Participant

    @sunshineday77

    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

    @robin-w

    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

    @sunshineday77

    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

    @robin-w

    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