• Resolved templederr

    (@celebtemple)


    Hello,

    How to remove or hide my blog name from every post title. For example, when Google indexes my post, I see – IMG Trend at the end. How to hide?

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi there,

    are you using an SEO plugin?
    If so they generally allow you to edit the Title meta.

    Let us know

    Thread Starter templederr

    (@celebtemple)

    Yes, I am using Slim SEO, but I have noticed that before installing SEO plugin, so I was presumed theme does that. Slim SEO is an auto-config plugin.

    Leo

    (@leohsiang)

    This isn’t something the theme can control – Google grabs the post title + site title by default.

    I would recommend trying an SEO plugin like Yoast or RankMath which let you edit that.

    Thread Starter templederr

    (@celebtemple)

    Hello, I have written some code I was sure it’s ok, but today I was discovered that I can’t pass RSS validator, I get: <channel> <title></title> missing title?

    The code: add_filter( ‘document_title_parts’, function( $title ) {
    unset( $title[‘site’] );
    return $title;
    } );

    What is wrong with this code only affects RSS? I have tested on all SEO sites, and all meta titles are ok.

    Theme Author Tom

    (@edge22)

    Hi there,

    That’s the correct way to do it.

    You could try this:

    add_filter( 'document_title_parts', function( $title ) {
        if ( ! is_feed() ) {
            unset( $title['site'] );
        }
    
        return $title;
    } );
    Thread Starter templederr

    (@celebtemple)

    Thank you, it’s working perfectly. Best support!

    Theme Author Tom

    (@edge22)

    Glad I could help! ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Remove blog name from the title?’ is closed to new replies.