Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Extra Page’s in BuddyPress


bpisimone
Participant

@bpisimone

@dre1080 I like the page title function there.

/*For extra functionality you can add a title for that page*/
function page_titles( $title, $b ) {
global $bp;

`if ( $bp->current_component == BP_Example_SLUG && $bp->current_action == ” ) {
$title = __( ‘Example’, ‘buddypress’ ); /*change Example with what you want the title of your page to be*/
}
return $title;
}
add_filter( ‘bp_page_title’, ‘page_titles’, 10, 2 );`

The first one works and adds a nice title to my about page. The second one though results in a white page. As if there was a double definition somewhere. There’s nothing I need to change else than BP_Example_SLUG and the actual title “Example”?

Skip to toolbar