-
stefan Dinu
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 https://inkaholics.co.uk
Thank you very much ! -
Hi there,
Where is the site title showing?
-
stefan Dinu
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 .
regards,Stefan -
David
Hi there,
WordPress provides a few filters to modify the sites title tag.
Including thedocument_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
- You must be logged in to reply to this topic.