• Resolved Presskopp

    (@presskopp)


    I get “We found 2 meta robots in your page. There is probably something wrong with your theme” using the Enfold theme. I tried to disable it’s function avia_set_follow() and the message went away. Question: Can I leave the function and ignore this notice because source code has

    1) <meta name=”robots” content=”index, follow” />
    coming from enfold

    and

    2) <meta name=”robots” content=”max-snippet:-1, max-image-preview:large, max-video-preview:-1″ />
    coming from SEOPress

    because it’s not twice the same?

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Benjamin Denis

    (@rainbowgeek)

    Hi,

    if you have 2 meta robots, Google will only take one into account (usually the last one).

    I strongly recommend to disable any SEO options coming from your theme to avoid any conflicts.

    Thread Starter Presskopp

    (@presskopp)

    Hmm, first thanks for the speedy reply. I’m not sure if you are right that google will only take one after what I’ve read but now I learned index,follow is the default anyway so I will get rid if it. Thanks again!

    FYI: Old but probably still valid:
    https://webmasters.googleblog.com/2007/03/using-robots-meta-tag.html

    For anyone reading this using Enfold, I simply added to a child theme’s function.php the following:

    if(!function_exists('avia_set_follow'))
    {
    	function avia_set_follow()
    	{
    		return;
    	}
    }
    Plugin Author Benjamin Denis

    (@rainbowgeek)

    In fact, it takes the most restrictive one, not the last one (like I said before).

    “For situations where multiple crawlers are specified along with different directives, the search engine will use the sum of the negative directives.”

    Official documentation link: https://developers.google.com/search/reference/robots_meta_tag#combined

    @presskopp Thank you very much. I had the exact same issue. You have helped massively.

    Thread Starter Presskopp

    (@presskopp)

    my pleasure!

    I have the exact same problem with my Pages.

    I use the Page Builder Framework and SEO-Press.

    On every page i have the same error as you “2 meta robots found and no index is active” even tho these pages are indexed…

    Have an idea?

    Website: Aramasmarketing.ch

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    @exestros do you a specific URL please? I have tried 5 different pages of your site and everything looks good.

    @rainbowgeek its not a specific Page.

    I get this error on every page i have inside wordpress.

    But when looking for the meta robots everything seems fine:

    For example my Homepage:

    View post on imgur.com

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    I have tested Page Builder Framework theme successfully.

    May I know your plugins list?

    I have the exact same problem with my pages.

    I use Efold theme and SEO-Press.

    On every page I have the same error as you “2 meta robots have been found and no index is active”
    I put this code in enfold-chiled:

    if (! function_exists ( ‘avia_set_follow’))
    {
    avia_set_follow () function
    {
    return;
    }
    }
    but I keep seeing 2 meta robots

    Thread Starter Presskopp

    (@presskopp)

    @svjetlanap the code you posted cannot work, make sure to use the exact code mentioned above

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘We found 2 meta robots in your page.’ is closed to new replies.