Skip to:
Content
Pages
Categories
Search
Top
Bottom

Move the textarea to the top of the page


  • mogge
    Participant

    @mogge

    I would like the textarea (in which I am typing this message tight now…) to be shown on top of the page. Before all the older entries… Since I am new to bbpress I don´t know where to start looking.

    WP v 4.1
    bbpress v 2.5.4

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

  • mogge
    Participant

    @mogge

    I don´t want my members to have to scroll through older entries to post a new one… Is there anyone who could point me in the right direction?


    Robin W
    Moderator

    @robin-w

    you could put a link into the page so that they click to get to it

    load my plugin

    https://wordpress.org/support/plugin/bbp-style-pack

    and go into

    Dsahboard>settings>bbp style pack>d. forum display and click no. 5

    You could put the form first, but it will hide your forums, but if you really want to do that come back.


    mogge
    Participant

    @mogge

    I have only one forum so I link directly to it…

    Please check this image: http://postimg.org/image/lc63c9crt/
    It explains what I wan´t to do.


    Robin W
    Moderator

    @robin-w

    ok,

    create a directory on your theme called ‘bbpress’
    ie wp-content/%your-theme-name%/bbpress
    find
    wp-content/plugins/bbpress/templates/default/bbpress/content-single-forum.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/%your-theme-name%/bbpress/content-single-forum.php
    bbPress will now use this template instead of the original

    then change lines

    <?php if ( !bbp_is_forum_category() && bbp_has_topics() ) : ?>
    
    <?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
    
    <?php bbp_get_template_part( 'loop',       'topics'    ); ?>
    
    <?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
    
    <?php bbp_get_template_part( 'form',       'topic'     ); ?>
    
    <?php elseif ( !bbp_is_forum_category() ) : ?>
    
    <?php bbp_get_template_part( 'feedback',   'no-topics' ); ?>
    
    <?php bbp_get_template_part( 'form',       'topic'     ); ?>
    
    <?php endif; ?>
    

    to

    <?php if ( !bbp_is_forum_category() && bbp_has_topics() ) : ?>
    
    <?php bbp_get_template_part( 'form',       'topic'     ); ?>
    			
    <?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
    
    <?php bbp_get_template_part( 'loop',       'topics'    ); ?>
    
    <?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
    
    <?php elseif ( !bbp_is_forum_category() ) : ?>
    
    			
    <?php bbp_get_template_part( 'form',       'topic'     ); ?>
    
    <?php bbp_get_template_part( 'feedback',   'no-topics' ); ?>
    
    <?php endif; ?>

    and save

    that should do it

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