Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: replacing page title


Olaf Lederer
Participant

@finalwebsites

Hi Thanks for helping.

it doesn’t work :(

this is the function I use (stripped the other code)

function my_title($title) {
return 'PHP Scripts Development Forum';
}

function create_meta() {
if (is_front()) {
remove_filter('bb_title', 'bb_get_title');
add_filter('bb_get_title', 'my_title');
// code to create the meta data
} else {
// do something else
}
}
add_action('bb_head','create_meta');

maybe it doesn’t work because I add the filter within that “action”?

Skip to toolbar