WordPress title tag plays important role of making your site more visible and SEO friendly, so that it can tell the search engine spider of what your site is about and allows your site to be indexed to the relevant search terms and keywords. There are other ways of customizing your site’s template or theme title tag for SEO friendly manually rather than using plugins that are many available today. Follow these simple steps.
Open the header.php file, find the <title> tag, and replace it with by the following code.
[sourcecode language=’php’]
- Advertisement -
[/sourcecode]
This code above will generate title tags according to the following sequence:
- Advertisement -
- Blog homepage -> display blog name.
- Category page -> display the category name and the blog name.
- Article page -> display the article title.
- Static page -> display the blog name, and the page title.
Try it!
- Advertisement -