• Resolved matteku

    (@matteku)


    Hi,
    after updating woocommerce, homepage robots metatag changes to <meta name=’robots’ content=’noindex,follow’ />. At the beginning I though the issue was caused by yoast that i’m using, however it is not.

    I want content to be indexed and the only way to change it right now is tunring off the woocommerce plugin – that’s not an option ??

    Any idea what is the problem and how can I get rid of it?

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    Have you mapped one of our dynamic pages to the home page in page settings?

    We have code in place to noindex those.

    /**
     * Disable search engines indexing core, dynamic, cart/checkout pages.
     *
     * @since 3.2.0
     */
    function wc_page_noindex() {
    	if ( is_page( wc_get_page_id( 'cart' ) ) || is_page( wc_get_page_id( 'checkout' ) ) || is_page( wc_get_page_id( 'myaccount' ) ) ) {
    		wp_no_robots();
    	}
    }
    add_action( 'wp_head', 'wc_page_noindex' );
    Thread Starter matteku

    (@matteku)

    Thanks, @mikejolley
    No, I have not mapped dynamic woocommerce pages to the home page – I think so – I have never done this.
    However, I made a test and changed home page to shop and the metatag noindex vanished.

    So, the problem might be in home page tweaks.

    I’m using divi builder for my home page, checked all of the internal linking, every divi modul that has something to do with woocomerce and… nothing ??

    Is it possible that divi has some sort of conflict with newest woocommerce? Before updating everything was ok.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Can you do a quick test/change and find out?

    Thread Starter matteku

    (@matteku)

    What test are you talking about?

    I’ve already changed homepage for a moment to shop and there was no noindex metatag.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    I mean’t test with another theme.

    Thread Starter matteku

    (@matteku)

    Changing theme did nothing…

    however I’ve done something else just few minutes ago.
    Copied all layout from my homepage and create another, new page. Then I choose new one as the homepage and… it worked.
    No more noindex on my site code.

    Do not really know what is the reason for that.

    thanks for the effort, @mikejolley

    Hi,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Meta robots – homepage problem’ is closed to new replies.