May 23, 2024 7:02 am
I would like to have my html title tags like this:
Topic title - Site title
In other words, i would like to EXCLUDE the forum name title. How do I do that?
5 Replies
May 23, 2024 12:15 pm
Hi,
Please read this documentation: https://wpforo.com/docs/wpforo-v2/settings/display-components/#show-forum-page-title
May 25, 2024 7:15 am
Hi @ziv7,
I assume you're talking about Meta Title. If so you should use the title hook to remove whatever you want. The hook code looks like this, it should be added in Code Snippets plugin or directly in the current active theme's functions.php file:
add_filter('wpforo_seo_topic_title', function ($title){
if( function_exists('WPF') ){
$forum_title = WPF()->current_object['forum']['title'];
return str_replace($forum_title, '', $title);
}
return $title;
} );