Yoast seo issue

Discussion in 'ReThink WordPress Theme' started by selfmade, Feb 4, 2015.

  1. selfmade

    selfmade Guest

    Joined:
    Feb 4, 2015
    Messages:
    49
    Likes Received:
    0
    Hi, Just want to setup yoast seo. But i get the following error -Your theme contains a meta description, which blocks WordPress SEO from working properly, please delete the following line, or press fix it:
    <meta name="description" content="<?php echo get_option('inkthemes_description'); ?>" />. Please help me get yoast up and running. Thankyou very much.
     
  2. Pramod

    Pramod Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,847
    Likes Received:
    63
    Hello !


    You can find this code in header.php file , follow below image.
    rethinl-5-feb-seo.png

    Thanks & Regards
    Pramod
     
  3. selfmade

    selfmade Guest

    Joined:
    Feb 4, 2015
    Messages:
    49
    Likes Received:
    0
    Sorry I am new to this. What do I do with the code to get yoast SEO running correctly? Do I delete this code that you displayed in the screenshot above? Many thanks.
     
  4. selfmade

    selfmade Guest

    Joined:
    Feb 4, 2015
    Messages:
    49
    Likes Received:
    0
    Here is the full error message
    Your theme contains a meta description, which blocks WordPress SEO from working properly, please delete the following line, or press fix it:
    <meta name="description" content="<?php echo get_option('inkthemes_description'); ?>" />
     
  5. selfmade

    selfmade Guest

    Joined:
    Feb 4, 2015
    Messages:
    49
    Likes Received:
    0
    Sorry it also states
    Your theme contains a meta description, which blocks WordPress SEO from working properly, please delete the following line, or press fix it:<meta name="description" content="<?php echo get_option('inkthemes_description'); ?>" />
     
  6. Pramod

    Pramod Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,847
    Likes Received:
    63
    Hello !

    PHP:
                <?php if (get_option('inkthemes_description') != '') { ?>
                    <meta name="description" content="<?php echo get_option('inkthemes_description'); ?>" />
                <?php } else {
                   
                } 
    ?>
    You can delete the second green highlighted code as shown in above image.

    Thanks & Regards
    Pramod
     

Share This Page