• Hi there,
    We have been using Yoast SEO for a while now however we have just introduced Woocommerce to sell a small amount of products.

    Thing is we don’t use the ‘shop’ page, we have no need for it.

    The issue is even if we go to the shop page SEO > advanced > and noindex, no follow and never include the page still appears on the site map at the top 80% popularity.

    The only way round it is to exclude product post types from the site map altogether which is a shame we can’t include the individual product posts.

    It there a way of ensuring the shop page isn’t listed?

    Many thanks

    https://www.ads-software.com/plugins/wordpress-seo/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Pete. same problem here. We do no need nor want the /shop/ page indexing.

    …/product-sitemap.xml

    …/shop/ 80%
    …/product/original-bed-with-low-end/ 100%
    …/product/original-dining-table/ 100%

    =========

    As far as I can tell, WOOC auto-generates the /shop/ page.

    the webpage /shop/ is an archive so has its own WOOC template [ not yer normal page template ]

    <title>Products Archive – mydomain.com</title>

    <body class=”archive post-type-archive post-type-archive-product

    [ You can not navigate to /shop/ via the dashboard, so are you looking at a standard PAGE also called shop ? ]
    =======================================

    UGLY solution

    We have 301 redirected the URL /shop/ back to the homepage

    However its hard to get rid off eg try a product search for number “0” eg
    mydomain.com/?s=0&post_type=product

    ========================================

    Wonder what Yoast have to say…
    Did you get resolution, a fix etc ?

    phil

    Thread Starter pete119

    (@pete119)

    Hi Phil,
    No I didn’t get a fix for this. We just styled the shop page and had some work done so now we only display Featured Products that we wish on the page.

    It’s more a landing page than a shop page now which we are happy about.

    The annoying thing is we cant reduce its Sitemap Priority, no matter what we set in SEO > Advanced it shows in the sitemap at 80%, I’d like this 0.1.

    A tad annoying, as you said its an archive page so we should have more control ?? Pete

    Can’t you go to the shop page itself and use the advanced settings under WordPress SEO to remove it from the sitemap?

    Thread Starter pete119

    (@pete119)

    The annoying thing is we cant reduce its Sitemap Priority, no matter what we set in SEO > Advanced it shows in the sitemap at 80%, I’d like this 0.1.

    Already tired this, even setting to noindex makes no difference, it still appears on the sitemap at 80%.

    You’re right. This works though:

    Titles & Metas > Custom Post Type Archives > Set Products to noindex, follow.

    For me, this puts noindex on the shop page but leaves individual products alone. That along with removing the shop page from the sitemap in the advanced section of the shop page itself should do the trick.

    Also, this function does a nice job of easily cleaning up the rest of the woo pages:

    // Noindex Woo Pages
        function woo_seo_noindex_special_pages () {
        global $post;
    
        $woocommerce_pages = array('cart', 'checkout', 'order-received', 'order-tracking',
                                   'my-account', 'logout', 'lost-password', 'mijireh-secure-checkout');
        $slug = get_post($post)->post_name;
    
        if (in_array($slug, $woocommerce_pages)) {
           echo '<meta name="robots" content="noindex,follow"/>' . "\n";
        }
    }
    add_action('wpseo_head', 'woo_seo_noindex_special_pages');
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can't exclude woocommerce 'Shop' page from sitemap’ is closed to new replies.