solves this problem YOAST SEO
add_filter(‘wpseo_title’, ‘my_wpseo_title’);
function my_wpseo_title($title) {
$title = str_replace(‘ – SiteName.com’, ”, $title);
return $title;
}
-
This reply was modified 1 year, 4 months ago by sultanes.
-
This reply was modified 1 year, 4 months ago by sultanes.
I don’t understand any code, please give me a ready-made PHP code to remove site names from Title. Thank you!
I do not speak English.
It’s easy to set a limit like in the screenshot and the problem won’t be: https://ibb.co/bXQH687
Limit post title length (in characters) “0” means that no title is entered