Notifications
Clear all

Script How to hide webiste name from forum SEO titles?

15 Posts
3 Users
1 Likes
959 Views
Sergido
Posts: 41
Topic starter
(@sergido)
Trusted Member
Joined: 3 years ago

si arregle, parece que era cosa del yoat seo 

 

gracias

Reply
3 Replies
Martin
Moderator
(@martin)
Joined: 6 years ago

Support Team
Posts: 868

@sergido,

Try to remove the site title with this code. Put this code in the functions.php file of your current active WordPress theme, or use the Code Snippet plugin to add this code to your website.

function my_custom_seo_title_in_forum_home($meta_title){
return (array)$meta_title[0];
}
add_filter('wpforo_seo_main_title', 'my_custom_seo_title_in_forum_home');
Reply
Sergido
(@sergido)
Joined: 3 years ago

Trusted Member
Posts: 41

@martín solo me interesa que no salga el mismo titulo en todas las URLS. cada URL debe tener su titulo correspondiente

Reply
Martin
Moderator
(@martin)
Joined: 6 years ago

Support Team
Posts: 868

@sergido,

The code above will remove the site name from all forum pages. You can use it.

Reply
Page 2 / 2