![](https://beanscommunity.wpenginepowered.com/wp-content/uploads/beans/images/4e86c848a6b731638b9bc4bef2b4c019-87a1c39.jpg)
Hi, for a post how to remove the Blog title part from ... title tags.
Eg:
<title>Lenovo Mobile Service Center in Yavatmal β Mobile Service Center</title>
How to just remove this part from title tags "β Mobile Service Center"
![](https://beanscommunity.wpenginepowered.com/wp-content/uploads/beans/images/c70294be72623e3f8995ee4832f8d065-87a1c39.jpg)
Hi Venkatesh,
The document title is handled on WordPress core in the wp_get_document_title()
(see documentation here) since WordPress version 4.4. So to remove your site title as you requested, you could use WordPress core document_title_parts
. Here is an example snippet you may add to your child theme functions.php
:
add_filter( 'document_title_parts', 'example_wp_title' );
function example_wp_title( $parts ) {
// Remove the site name from the document title.
unset( $parts['site'] );
return $parts;
}
Happy coding,
![](https://beanscommunity.wpenginepowered.com/wp-content/uploads/beans/images/4e86c848a6b731638b9bc4bef2b4c019-87a1c39.jpg)
Thanks alot Thierry Muller. Perfect π