Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

How do you disable the site title on specific pages and keep the content title?

  • So I am trying to disable the site title but keep the content title , I have tried to do that in elements but it disables the other way around. website is
    Thank you very much !

  • Hi there,

    Where is the site title showing?

  • Hi Ying,
    It shows in the title bar of the page/browser .because of that I can’t manipulate the individual page titles for a better SERP positioning and SEO optimization
    so it shows first the content title “Aftercare for tattoo and piercings” and than after comes the website title that is “Inkaholics London Tattoo Shop” the later one is on all pages of the site. I can disable the content title in the elements section but not the other way around , I can also disable the website title throughout the whole site but not for individual pages, which is what I am looking to do .

  • Hi there,

    WordPress provides a few filters to modify the sites title tag.
    Including the document_title_parts hook.
    Here is an example PHP Snippet that removes the site name from the title on single posts and single pages:

    add_filter( 'document_title_parts', function( $title ) {
        if ( is_single() || is_page() ) {
            unset( $title['site'] );
        return $title;
    } );

    If theres a specific condition under which you want to remove the site title, then let me know

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.