Hi @bambi26,
I just double-checked the code, and custom SEO titles are used exactly as-is. The site name is only appended when no custom title is set ☺️
First thing to check: in SEO Engine’s settings, is Auto Page Title enabled?
If it’s disabled, WordPress or your theme builds the title instead, and WordPress appends the site name by default.
Also, if you’re seeing this in Google’s search results rather than in your page’s HTML, that’s Google itself. It often adds the site name to displayed titles, and no plugin can prevent that. You can verify the real title by viewing your page’s source and checking the <title> tag.
Let me know what you find!
Jordy.
Hi Jordy,
I did not check the “Auto Page Title” … that sounded to me like the “automatically generated ” actually (like “auto” ?) …
OK, now I still want to get rid of that Site Name even for the automatically generated, how can I do that? Where is that part in the php, maybe I can just comment it out or simply delete 🙂
Thanks!
Yes, exactly! Auto Page Title generates clean titles the way Google expects: post title followed by site name. It can be overridden per post with the SEO Title (Quick Edit in Content SEO), which is always respected as-is. That’s why it’s on by default, best of both worlds, I recommend it 😊
Removing the site name isn’t something SEO Engine handles directly. In fact your issue is not related to SEO Engine, it would be the same with it or without it. You can use this snippet:
add_filter( ‘pre_get_document_title’, function( $title ) {
$suffix = ‘ | ‘ . trim( get_bloginfo( ‘name’ ) );
if ( str_ends_with( $title, $suffix ) ) {
$title = substr( $title, 0, -strlen( $suffix ) );
}
return $title;
}, 100 );
It removes the site name. The easiest way to run it is with Code Engine (https://wordpress.org/plugins/code-engine/), or you can drop it in your theme’s functions.php.
Just in case: Google often adds the site name to search results on its own, so you might still see it there even with this snippet.
Small correction to my message above: with Auto Page Title enabled, it’s actually SEO Engine that adds the site name to the automatic titles (WordPress does the same on its own when the option is off, just with a different separator). The snippet works as posted with the option enabled, so nothing changes for you 🙂
100 x thanks 🙂
used a slightly different function to kill that site name in title, works beautifully now 🙂
🤗🙏🏻
You’re welcome @bambi26! And thanks for the nice review, that’s really kind of you 😊 Have a beautiful Sunday!