The file you are looking for that has this code should be part of the templates you can customize if you copy the file loop-single-topic.php
from the bbPress plugin to your child theme.
ah thanks, the command is there, i tried to modify the syntax a bit but nothing shows up! can i get a little more details? thanks!
You may need to refresh any cache if you cannot see any changes appear.
The original code in loop-single-topic.php
from \wp-content\plugins\bbpress\templates\default\bbpress\loop-single-topic.php
Has this code. Which makes it not show up in single forum pages, so it is only visible in topics created section in your forum profile, forum search, and the topic archive on yoursite.com/topics. You may need to remove the conditional if you want to always have it visible.
<?php if ( !bbp_is_single_forum() || ( bbp_get_topic_forum_id() !== bbp_get_forum_id() ) ) : ?>
<?php do_action( 'bbp_theme_before_topic_started_in' ); ?>
<span class="bbp-topic-started-in"><?php printf( __( 'in: <a href="%1$s">%2$s</a>', 'bbpress' ), bbp_get_forum_permalink( bbp_get_topic_forum_id() ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?></span>
<?php do_action( 'bbp_theme_after_topic_started_in' ); ?>
<?php endif; ?>
i cut the ifs but nothing happens, should have said this before, i am in no mean a programmer i did this
<?php do_action( 'bbp_theme_before_topic_started_in' ); ?>
<span class="bbp-topic-started-in"><?php printf( __( 'in: <a href="%1$s">%2$s</a>', 'bbpress' ), bbp_get_forum_permalink( bbp_get_topic_forum_id() ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?></span>
<?php do_action( 'bbp_theme_after_topic_started_in' ); ?>
is this correct?
@danceee3
Oh I forgot, put the customized loop-single-topic.php
you have to a folder called bbpress in your child theme. bbPress should then use that file, and you should see the changes immediately.
oh thanks i thought it was optional! tanks for the help!