Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

@robin-w

Moderator

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

Skip to toolbar