• Resolved bambi26

    (@bambi26)


    This plugin has a VERY ANNOYING bug, as it automatically inserts the site name AFTER the SEO title, and there is NO WAY to deactivate that!!!!!

    I am adding custom Titles on every page, STILL; your plugin injects that Website name automatically after each title (like “my custom title here | Website Name (injected by your plugin!!!!) “

    You write :

    Page Title

    By default, SEO Engine generates the page title (shown in browser tabs and search results) using this format:

    Post Title | Site Name

    If you set a custom SEO title for a post, it will be used as-is without appending the site name.


    Well, I DO ADD MY CUSTOM TITLES, STill your plugin injects that stupid site name in the end!!!!!!!!

    PLEASE correct this bug! It’s making titles unnecessarily extremely long, which PREVENTS indexing by Google, Bing etc.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    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.

    Thread Starter bambi26

    (@bambi26)

    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!

    Plugin Author Jordy Meow

    (@tigroumeow)

    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.

    Plugin Author Jordy Meow

    (@tigroumeow)

    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 🙂

    Thread Starter bambi26

    (@bambi26)

    100 x thanks 🙂
    used a slightly different function to kill that site name in title, works beautifully now 🙂

    🤗🙏🏻

    Plugin Author Jordy Meow

    (@tigroumeow)

    You’re welcome @bambi26! And thanks for the nice review, that’s really kind of you 😊 Have a beautiful Sunday!

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.