• Resolved benutzer

    (@benutzer)


    Hello, I don’t have a shop page. However, it is displayed in the source text.

    {“@type”:”ListItem”,”position”:2,”name”:”Shop”,”item”:”https://xxxxxxx.xxxx/shop/”}

    The shop page redirects to the start page, it is not in the sitemap.

    Google now always shows the shop page in the search results.

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • @benutzer

    Perhaps, you’ve selected a shop page in your WooCommerce>Settings>Products>Shop page. You can select some other page as a Shop page to fix this issue.

    Can you confirm?

    Thread Starter benutzer

    (@benutzer)

    Hallo,

    vielen Dank.

    Ich habe es mit folgendem Code geschafft

    add_filter( 'wpseo_sitemap_post_type_archive_link', 'my_wpseo_cpt_archive_link', 10, 2);
    function my_wpseo_cpt_archive_link( $link, $post_type ) {
            // Disable product/post archives in the sitemaps
            if ( $post_type === 'product' )
                    return false;
            return $link;
    }

    Gru?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove shop page’ is closed to new replies.