Thesis SEO Tip For Google Penguin — Removing The META DESCRIPTION Tag

Have you ever wondered how search engines use meta description? Search engines use the meta description in the results snippets in search results along with the title and the site url. It gives the visitors a general overview of the page. And providing the relevant information in the meta-description increases the possibility of gaining and attracting more visitors.

The Thesis theme allows the page author to write a custom meta description or it dynamically generates one from the initial words of the content. With the recent Penguin update from Google, things have changed. If you’ve tried to force custom meta descriptions or have just let Thesis do them on its own, Google may penalize the site if there are too many keyword repetitions. If it’s the auto-generated meta description, then it’s pretty much useless as it’s unpractical to for the author to focus on describing the page in the first few sentences. Why not just let Google figure it out?

Here’s a simple way to force Google to pull meta description from inside the page content with it’s own intelligence (yeah, that’s dumb). Just copy the below code and paste it in custom_functions.php:

function rem_thesismetadescription($metadata, $object_id, $meta_key, $single) 
{
    if($meta_key == 'thesis_no_description')
    {
        return true;
    }
    return $metadata;
}

add_filter('get_post_metadata','rem_thesismetadescription',true,4);

The above code will make sure that Google will pull meta description based on the page content for all posts.

Posted In:

UX UI Front-end Development, Thesis WordPress Theme Framework

4 Comments

  1. Great tip but I’ve got a question: if you do like in above article do you tick the “Let Thesis pull out a description….” box in Thesis?

    Reply
  2. That does not remove the Thesis Theme meta description. That will only remove it if you ask Thesis to let Google generate the description which is a per post/page setting and Thesis handles that already. Any ideas on a blanket solution to supress the Thesis meta description field?

    Reply
  3. Apologies, it does work beautifully, it doesn’t seem to work on the homepage though but I am very happy with that. Many thanks — handy little tip filtering on the post_meta to simulate post_meta at runtime.

    Reply
  4. Thanks, I was seeing double meta description after installing Yoast’s WordPress SEO plugin. That plugin is very useful I was not willing to remove that. And now I don’t need to.

    Reply

Comment on Thesis SEO Tip For Google Penguin — Removing The META DESCRIPTION Tag

Your email address will not be published. Required fields are marked *