WordPress.org

Ready to get started?Download WordPress

Forums

Meta Description the same for every page (5 posts)

  1. reln
    Member
    Posted 7 years ago #

    I am trying to figure out why my blog dropped out of search results and it appears that my meta description is the same for every page/post causing duplicate content problems.

    It seems that the description that I gave for my tagline comes up as the meta description for every post. Is there a way to set up my header so that it automaticaly adjusts my meta description to the title of the post and not to my blogs tagline?

    I know about the plugins head-meta-description and "Another wordpress meta plugin" but these plugins add meta descriptions to my header they dont replace the current meta description and they also end up lower down the page.

    I noticed some blogs have no plugins installed and there descriptions are post title appropriate.

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    I took a look at my blog and didn't find any meta description at all. The default theme doesn't have one either. I'd suggest looking at your theme and plugins and seeing if you can work out where the meta description comes from in the first place.

  3. reln
    Member
    Posted 7 years ago #

    The meta description would be located in the header.php file if you have it.

    Many themes have it. My theme is wp-andreas01-12 and the meta description in the header is:

    <meta name="description" content="<?php bloginfo('name'); ?> - <?php bloginfo('description'); ?>" />

    Maybe there's something wrong with this setup.

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Well, with that, then yeah, your meta description will be the same on all your pages.

    This code: <?php bloginfo('description'); ?>
    returns the tagline of the blog. Which might be fine for your main page, but is probably not something you want on single post pages.

    I would suggest removing that line from your theme and using one of those plugins you mentioned instead. Location of the meta tag on the page is irrelevant as long as it's still in the <head> section.

  5. reln
    Member
    Posted 7 years ago #

    So it seems the code for the meta description is the problem. Alright, I removed the code and inserted the meta-head plugin instead.

    thanks otto

Topic Closed

This topic has been closed to new replies.

About this Topic