bbPress: Hide Breadcrumbs and Forum Info Notices
Removes the bbPress breadcrumb trail and the grey "This forum has X topics" info boxes for a cleaner forum layout.
Opens WPIDE on
Code
if ( ! function_exists( 'is_bbpress' ) ) {
return;
}
$wpide_bbp_hide_breadcrumb = true;
$wpide_bbp_hide_info = true;
if ( $wpide_bbp_hide_breadcrumb ) {
add_filter( 'bbp_no_breadcrumb', '__return_true' );
}
if ( $wpide_bbp_hide_info ) {
add_filter( 'bbp_get_single_forum_description', '__return_empty_string' );
add_filter( 'bbp_get_single_topic_description', '__return_empty_string' );
}
Notes
Set either option to false to keep that element.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.