Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1143106

    Hi Support,
    i’m using Enfold with the SEO Press plugin.
    Is there a way to prevent the meta robots tag, automatically generated by the enfold theme (in the header), so that there are no overlaps = duplicate entries with the seo plugin?
    Thank you for any help.

    Best Regards,
    Markus

    #1143450

    Hey Markus,

    Yes, you’ll need to do the following steps:
    1. Use a child theme: https://kriesi.at/documentation/enfold/child-theme/
    2. Copy header.php from Enfold (parent theme) and paste it in the child theme.
    3. Tweak child theme’s header.php content, just remove those meta tags and this code:

    if (function_exists('avia_set_follow')) { echo avia_set_follow(); }

    Hope this helps.

    Best regards,
    Nikko

    #1143475

    Hey Nikko,
    your tip will help me a lot, thank you!
    I run a woocommerce shop and found a problem with the meta robots tag on two pages. The cart page as well as the customer account page contain a <meta name = ‘robots’ content = ‘noindex, follow’ /> although in my SEO Plugin this setting is not activated at all. I’ve already disabled all plugins to determine where the entry came from, unfortunately without success.
    It would be nice, if you could check both sides. You may find the cause of these two websites. everything else works great now!

    Best regards,
    Markus

    #1143486

    @ Nikko,
    i found a working code that solve my problem on these sites:

    add_action( 'init', 'remove_wc_page_noindex' );
    function remove_wc_page_noindex(){
    	remove_action( 'wp_head', 'wc_page_noindex' );
    }

    Now I can make all settings via SEOPress without duplicate meta robots entries :-)

    Best regards,
    Markus

    #1143523

    Hi LFK,

    Glad that you found the solution and sharing it here :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Disable meta robots tag’ is closed to new replies.