I need the link to the paged shop archive URL to add it as rel=canonical. As default WooCommerce seems to use always the URL of the “All products” page. For example: The all product archive page has the following URL: If I go to page 2, the URL is still the one from above. But the correct version would be:
Tag: yoast
WooCommerce: Remove “Products” archive from Yoast breadcrumbs
I want to remove the link to the products archive in the breadcrumbs on all pages. To do that, I found a solution in the Yoast docs. It works fine except on the product pages. Here’s my current code: It removes the link on archive pages and all other WooCommerce pages as you would expect by the conditional tag is_woocommerce().