Improved Meta Description With WordPress

Google Webmaster tools was complaining that my content had duplicate meta descriptions. I found that it was always displaying the blog description on all the pages.

I found quite a few meta tag plugins but I settled for the Improved Meta Description Snippets plugin with a small modification.

I added this else block at line 119 In the improved-meta-description-snippets.php

 
else {
	echo '<meta name="description" content="' . get_bloginfo('description') . '" />';
}
 

That displays the default blog description on the home page. Then I removed the default meta description in the header.php in my current theme.

References:

How do I change my site's title and description?

Official Google Webmaster Central Blog: Improve snippets with a meta description makeover

Technorati Tags: , , , ,

4 Responses to “Improved Meta Description With WordPress”


  1. 1 chris

    That was really helpful. Thanks for the tip. I wasn’t sure how to get around that otherwise.

  2. 2 Jim Mirkalami

    I have been visiting this site a lot lately, so i thought it is a good idea to show my appreciation with a comment.

    Thanks,
    Jim Mirkalami

  3. 3 Dilantha

    Thanks Jim. Hope you find the information here useful.

  4. 4 Dilantha

    Thanks Jim. Hope you find the information here useful.

Leave a Reply