Skip to:
Content
Pages
Categories
Search
Top
Bottom

Move “New Topic” element to the top of the page.


  • dylandebruijn
    Participant

    @dylandebruijn

    Hi, I would like to move the “New Topic” element to the top of the page. See image:

    Visual of the issue

    How can I achieve this?

    Kind regards,

    Dylan

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

  • Robin W
    Moderator

    @robin-w

    are you able to use ftp?

    If so, I can give you details on how to amend a template.


    dylandebruijn
    Participant

    @dylandebruijn

    Yes, we have access to the FTP.


    Robin W
    Moderator

    @robin-w

    find
    wp-content/plugins/bbpress/templates/default/bbpress/content-single-forum.php

    transfer this to your pc and edit

    you’ll see

    		<?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'     ); ?>

    change this 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' ); ?>

    and save

    then create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

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

    Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/content-single-forum.php

    bbPress will now use this template instead of the original, and the topic form will now appear before the forums


    dylandebruijn
    Participant

    @dylandebruijn

    Thanks alot, worked perfectly!


    Robin W
    Moderator

    @robin-w

    great – glad you are fixed

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