- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
WordPress. How to remove “|” sign from pages browser titles
April 20, 2015
This tutorial shows how to how to remove “|” sign from pages browser titles in WordPress.
WordPress. How to remove “|” sign from a site/pages title
-
In order to remove “|” sign from a site/pages title, please log into your WordPress admin section.
-
Navigate to Appearance->Editor and on the right look for: header.php file. In case this file is not present at wp-content/themes/themeXXXXX folder, just copy it from wp-content/themes/CherryFramework directory and edit then:
-
Open header.php file and look for this code:
-
You can remove “|” sign from every code line there, so it will not be shown on any page of your site.
If you want to delete it only from site title, then you have to delete it from this line:} elseif ( is_home() || is_front_page()) { bloginfo( 'name' ); echo ' | '; bloginfo( 'description' );
between
echo
and
bloginfo( 'description' );
you see “|” sign that has to be removed, then the code will look as follows:
} elseif ( is_home() || is_front_page()) { bloginfo( 'name' ); echo ' '; bloginfo( 'description' );
Feel free to check the detailed video tutorial below: