Posts tagged ‘seo’

One of the ways to make your blog more search engines friendly is to take cate of your <title> tag. That’s what’s showin in the browser’s window title. By default, wordpress shows Blog name on the homepage and [BolgName] > Blog archive > [PostTitle] on the posts page (the most important to us). Best variant is to show only post title or ctegory title in the <title> tag, without any blog name. Best variant to do this is to install All in one SEO Pack and configure everything there. However, if you can’t/don’t want do this, you can do one simple change.

  1. Go to Design->Theme Editor if you have version less, than 2.7 or Appearance -> Editor if you have 2.7.
  2. Choose file header.php
  3. Find line <title>…..
  4. Replace this line with these two:
    1.  
    2. <?php if (($t = wp_title(" ", false)) == ”){$t = get_bloginfo(‘name’);} ?>
    3. <title><?php echo $t; ?></title>
    4.                
  5. You’re done!

Further reading – wordpress reference