Improving Wordpress SEO
Thursday, June 12th, 2008Using WordPress? If you’re looking for SEO improvements, checkout this excellent WordPress SEO Guide. It has quite a lot of good ideas for optimizing your blog, with the relevant plugins. I would recommend doing most of it.
One of the things they didn’t mention is removing bloginfo(’name’) from header.php so that the blog name will not appear in the title of every single page on site. (If you are asking why, here is the answer)
In case you want to do it, all you need to do is edit header.php
change this code:
<title><?php bloginfo(’name’); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>
into this:
<title><?php
if ( is_single() || is_category() || is_tag())
{
wp_title(”);
}
else
{
bloginfo(’name’); ?> <?php wp_title();
}
?></title>
Warning: If your blog is active for a long time and has thousands of posts, I wouldn’t change the title for all posts. Google doesn’t like ‘big’ changes. In that case, I would change the title only from the current postId, so that next posts will be with no title and old ones stay untouched.
|










