Breadcrumbs not showing the full path

I have added breadcrumbs to my product template, but when they are displayed on the front end they don’t show the full category path. An example would be https://wordpress-1368127-5047106.cloudwaysapps.com/product/allegra-refectory-table-2/, on this page the breadcrumbs show home > collection > Allegra Refectory Table. I expected it to show home > collection > table > dining tables > Allegra Refectory Table.

Hello @simonwr1976,

Thank you for the inquiry.

This is the default behavior of the breadcrumb – it only displays the first product category. If you need to display all categories, you can use a Looper Provider > Current Post Terms > Product Categories. We have created an example of this setup in the WooCommerce Single layout called Custom Breadcrumb. (see secure note)

Best regards.

thanks for your help, a few things, the breadcrumb just has category and sub category. Each of these categories is in a collection. I tried adding English Collection in the text editor with a permanent link, but this doesn’t work. Also the whole of the breadcrumb links to the sub-category at the moment. Also it’s not staying within the container and is full width. My idea was that If I add english collection or scottish collection as text I can then assign two copies of the same template to each collection. Would it be better to do this or to change my category structure so I have collection (english or scottish) as the main category > seating etc as the sub category and dining chairs as the sub-sub-category?

We adjusted the breadcrumbs further and fix the incorrect URL.

The link of the Collections path is currently hard coded but you can adjust if necessary.