Where the breadcrumbs should be like this: Home / Products / Category / Product-name
This would be a very logical option to me, however I cannot get it done. Closest I get is hiding the shop page and adding a category Products above all products but then the url of this page will be http://www.url.com/products/products/
To achieve the desired URL structure, navigate to Settings > Permalinks, and set the URL structure in Optional as required. Something like, use /products/%product_cat%/.
This should give you the desired URL structure for your product categories. However, for individual product pages, WooCommerce by default adds /product/ before the product name in the URL. To remove this, you would need a plugin like Premmerce Permalink Manager for WooCommerce.
Where the breadcrumbs should be like this: Home / Products / Category / Product-name
This depends on the theme. However, you can use a plugin like Breadcrumb NavXT, Rank Math SEO or Yoast SEO. These plugins allow you to customize your breadcrumb path.
Please be aware that changing the URL structure can affect your SEO. It’s recommended to create redirects from your old URLs to your new ones to prevent 404 errors.
I hope this helps. If you have any other questions, please don’t hesitate to ask.
Hi Shameem, thanks for responding. Basically from the current situation all I want is for the label Products to appear before the breadcrumb, which links to the shop page. No URL’s are changed.
Every suggestion you posted I get some result but not the desired one. I use Rankmatch Pro which enables me to remove the categorie slug but this affects all categories, not just the top level one.
Basically I would be ok if there is just some way to insert the shop page as a first level item in the breadcrumb. Like this: Home -> Product-category -> Product-title Home -> Shop page -> Product-category -> Product-title
Please note that writing or providing custom code is not within the scope of our support policy. If you are still having problems, we recommend asking development questions on the #developers channel of the WooCommerce Community Slack. Many of our developers hang out there and will be able to offer insights into your question. You can also seek help from the following:
Meanwhile, if it isn’t too much to ask for – would you mind leaving us a review here? It only takes a couple of minutes but helps us tremendously. It would mean so much to us and would go a long way.
Thanks!
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘WooCommerce Permalink issue’ is closed to new replies.