WordPress.org

Ready to get started?Download WordPress

Forums

Duplicate title / description tags (1 post)

  1. LCHH
    Member
    Posted 2 years ago #

    My description tag is a duplicate of the title tag of my pages. Also, the description tag tacks my site's title onto the end of it, so I have the title tag in there, followed by the 'Tagline.'

    I have the SEO Yoast plugin and no force rewrite ticked as that doesn't make a difference.

    In header.php I have the following code:-

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

    I'm thinking that there is something I should be changing in there to force it to see my Yoast description and also not use the Tagline too?

    Any help gratefully received.

Topic Closed

This topic has been closed to new replies.

About this Topic