Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to customize bbpress titles ?

There isn’t currently a filter on the title, so there’s no quick answer that I can see, however:

You could copy bb-templatesheader.php to my-templatesheader.php (if you don’t have a copy of it already), then change its call to bb_title(); to another function, which you could write in a plugin, stealing code from the bb_get_title() function in template-functions.php.

Something like: my-title-plugin.php

<?php

// edit this so it returns whatever you want

function my_title() {

global $topic, $forum, $static_title, $tag, $user;

$title = '';

if ( is_topic() )

$title = get_topic_title(). ' &laquo; ';

if ( is_forum() )

$title = get_forum_name() . ' &laquo; ';

if ( is_tag() )

$title = wp_specialchars( get_tag_name() ). ' &laquo; Tags &laquo; ';

if ( is_bb_profile() )

$title = get_user_name( $user->ID ) . ' &laquo; ';

if ( !empty($static_title) )

$title = $static_title . ' &laquo; ';

$title .= bb_get_option('name');

return $title;

}

?>

Skip to toolbar