Hello all,
I ma trying to change just the page title for the Forums archive but not finding anything that is current and works.
Is there possibly a modern day version of @lynq ‘s code that works with WP 4.7.3 and bbpress 2.5.12?
Or am I doing something wrong?
I’ve tried it and other variations gleaned from other posts like these:
functions.php
add_filter( ‘bbp_get_forum_archive_title’, ‘ddw_bbpress_change_forum_archive_title’ );
function ddw_bbpress_change_forum_archive_title() {
return ‘Your Forums Archive Title Here’;
and
single.php
<?php if ( is_front_page() ) { ?>
<h1 class=”entry-title”></h1>
<?php } else if (get_post_type() == ‘forum’) { ?>
<h1 class=”entry-title”>Forum Title</h1>
<?php } else { ?>
<h1 class=”entry-title”><?php the_title(); ?></h1>
<?php } ?>
The functions.php breaks WP and the single.php or forums.php does nothing.
Any pointers would be great,
Thanks