Search engine friendly title tag

Make you title take more SEO friendly by updating the theme header.php with the following TITLE tag.

<title>
<?php if (is_home () ) { bloginfo(‘name’);}
elseif ( is_category() ) { single_cat_title(); echo ‘ – ‘ ; bloginfo(‘name’); }
elseif (is_single() )      { bloginfo(‘name’); echo ‘ | ‘;single_post_title(); }
elseif (is_page() )        { bloginfo(‘name’); echo ‘ | ‘; single_post_title(); }
elseif ( is_404() )         { bloginfo(‘name’); print ‘ | Not Found’; }
elseif ( is_search() )   { bloginfo(‘name’); print ‘ | Search results for ‘ . wp_specialchars($s); pageGetPageNo(); }
else { wp_title(”,true); }
?>
</title>

You may edit the header.php under Appearance > Editor

No TweetBacks yet. (Be the first to Tweet this post)
Tweet This Tweet This Post!

Post a Comment


Aweber
AnHosting
Free wordpress blog installation service
Dreamhost


  • Links

Custom Content