How to Make Your Title Tag SEO Friendly

WordPress title tag also plays important role in SEO, it telling the search engine spider what your site covered, and allows your site to be indexed based upon the correct and most relevant keywords. If your site has good seo, then you will have lots of organic traffic from various search engines. So how to make your wordpress title tag SEO friendly?

Open header.php file, find the <title> tag, and replace it by the following code.

<title>
<?php if (is_home () ) {
bloginfo('name');
} elseif ( is_category() ) {
single_cat_title(); echo ‘ – ‘ ; bloginfo('name');
} elseif (is_single() ) {
single_post_title();
} elseif (is_page() ) {
bloginfo(’name’); echo ': '; single_post_title();
} else {
wp_title("",true);
} ?>
</title>

This code will generate title tags according to the following model:

  • 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.

9 Responses to “How to Make Your Title Tag SEO Friendly”

  1. ulfiyah says:

    not work

  2. Codrut Turcanu says:

    Good advice, just that techie is not my best skill… :)

    I make things simpler. Using Platinum SEO plugin :)

  3. Make Website says:

    Truly good stuff but again I’m not so confident to touch my template code. I’m not a technical person anyway. Codrut Turcanu recommended platinum SEO plugin. Will look into that. Overall, I like this site, great information and tips.

  4. Dave says:

    I get an error when I copy over your title suggestion.

  5. shaun way says:

    try in to to chatlinks

  6. shaun way says:

    great..no comment

  7. Website Designer Bristol says:

    Hey, great blog post. Do you only write on here or do you write on other blogs to? Would like to follow your content.

  8. kampanie AdWords says:

    Great text and nice blog.

  9. Kristofer Amicone says:

    I have read a few just right stuff here. Definitely value bookmarking for revisiting. I wonder how so much effort you set to make the sort of magnificent informative website.

Leave a Reply