• Resolved iltel

    (@iltel)


    Hello,

    Thank you for your great plugin!

    My question – How do we remove the noindex tag from the login page, created by Woocommerce? we want it to be indexed by Google (when the user is not logged in). Currently Google says it is set to noindex.

    Your YOAST plugin is set to index (set to yes) on this page, but the noindex set by Woocommerce is stronger.

    Can you please help?

    Thank you,

    Noam

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

Viewing 1 replies (of 1 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hello Noam!

    This is the support forum for The SEO Framework, not Yoast SEO ??

    In any case, it’s outputted by WooCommerce. You can remove it with this snippet:

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

    With robots, the most restrictive directive is always honored.

Viewing 1 replies (of 1 total)
  • The topic ‘Hoe to remove noindex tags form Woocommerce login page’ is closed to new replies.