Descriptive, dynamic titles! A dynamic name for every page on your blog.
Now this may sound difficult but it’s really easy.
Explanation
When Google, Yahoo or other search engines return results, they provide the title and a short description of the site they are linking to. These are easy to see becuase, they are Bold and in Blue (see below).
The title comes from the actual <title> tag for your post. In an ideal world the title on each page would contain both to title of the post and the name of the site.
There are two way to make this happen:
- Change your title manually with every post (this could take a long time if you have multiple pages on your blog).
- Have you blog change them for you!
#2 is the obvious choice. So how do we make this happen?
Execution
If you use WordPress, this is extremely easy to do.
All you have to do is add one line of PHP between the <title> tags in your theme’s header.php file.
<title>
<?php
   if (is_single() || is_page() || is_archive()) {
       wp_title('',true);
   } else {
       bloginfo('description');
   }
?>
</title>That’s It!
When you check your site you will notice that the home page will be the name and tagline of your blog (these can be set in your settings section of your WordPress administration panel).
On the other pages of your title will be based on the title of your post and will include the name of your site.
Liked this post?
Subscribe to the RSS feed, right now!.
Or, You can also follow me on twitter. Thanks for visiting!
