Yoast SEO
[Plugin: WordPress SEO by Yoast] Need help getting this plug in to play nice with my theme. (2 posts)

  1. rick4him
    Posted 3 years ago #

    This plug in duplicates a lot of the functions of my theme, and is duplicating a lot of info my header. I'm having a hard time understanding what is being duplicated and how the make it 'play nice.' I need to have the plug in running to keep all of my custom meta descriptions, meta titles, etc. but I need to find a way to tell the plug in not to duplicate certain data like all the lines of code in the header that is a duplicated.

    I"m including some of the header code so you can see what is being duplicated. Can anyone please chime in and let me know what the best way to handle this is? Thanks.
    [Code moderated as per the Forum Rules. Please use the pastebin]


  2. SuperFastCars
    Posted 3 years ago #

    I was having issues with the title for my wordpress pages being duplicated, so I modified my <title> tag in my headers.php file;

    if(is_home() || is_front_page()) {
    echo bloginfo("name") . ' | ' . bloginfo("description");
    } else {
    echo wp_title('', true, 'right'); } ?>

    In the following file;
    /wp-content/themes/(your selected theme)/headers.php

    Try this yet? :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic