Breadcrumbs not showing the full path

Thanks for this,the only issue is that the category and sub-category are in the wrong order. As an example - https://wordpress-1368127-5047106.cloudwaysapps.com/product/mahon-chair/. Breadcrumb shows home > english collection > dining chairs > seating england > mahon chair but it should be home > english collection > seating england > dining chairs > mahon chair

We edited both English and Scottish Collection templates and reverse the order of the product categories. If you need more help with this type of modifications, you should definitely check our One service.

great, thanks again for your help. I’ve got the product pages now sorted, thank you.

I’ve copied over the same breadcrumbs to the category archive, but it’s created a couple of issues (e.g. https://wordpress-1368127-5047106.cloudwaysapps.com/product-category/seating-england/) This is a category page, but the breadcrumb also show the sub-category. Also I have applied this archive type of the england main categories, I hoped this would also apply to the sub-categories, but it hasn’t. Is there a way of creating a condition that includes the sub-categories of a main category. I really want to avoid adding all of the sub-categories as individual conditions if possible

In the category layout, you can remove the “Categories” element from the breadcrumb and replace the last trail with {{ term.name }}.

thanks again, it’s nearly working, but not quite.

the category pages are now fine, but the sub-category pages are home > english collection > sub-category, They are not showing the category

to get round this will I have to create a seperate template for the sub-categories? Do I then need to add all of the sub-categories as individual conditions?

Would you mind providing a screenshot and a direct link to one of the sub-category pages? The custom breadcrumb seems to be displaying correctly when checked the category “dining-chairs” . (see secure note)

On that link you’ve sent the category isn’t showing the breadcrumbs is home > english collection > dining chairs.

I was expecting it to be home > english collection > seating > dining chairs

Hey @simonwr1976,

Please check out this old thread to be able to include the parent category in your breadcrumb:

Be advised that custom coding is beyond the scope of our support under our Support Policy. If you are unfamiliar with code and resolving potential conflicts, you may select our One service for further assistance.

Best Regards.

thanks for the reply, but all of the rest of the support I’ve received has been helping to build the breadcrumbs a different way, now your answer appears to be for me to use a bit of custom code that you then won’t support.

Please could you get back to me about my last message in relation to all of the previous messages in this thread.

We adjusted the Woocommerce Category layout again, toggle the visibility of the Categories element in the Custom Breadcrumbs, then hide the last trail, which is the name of the current category.

While we’re happy to assist with this modification, please note that this is beyond the scope of our standard support because it requires custom development. We recommend checking out our One service.

thanks for the reply. It’s so nearly there, but not quite. I’m going to try and go about it a slightly different way and have different templates for the category and sub-category pages. I have the category template already and I’ve duplicated this and changed the condition so it only currently applies to dining chairs. I can only think I’ve got the assignment wrong, but I don’t understand why. I’ve currently added both the english and scottish dining chairs sub-category as I wasn’t sure which was which

Have you tried checking the value of {{ term.url }} ? For example, if you need to display the same archive template for the Seating England > Armchairs / Lounge Chairs category, you can set the template condition to type String with the rule {{ term.url }} > is > https://site.com/product-category/seating-england/lounge-chairs/ . This should help avoid the need to create multiple templates.

You can also apply this same condition directly to the elements in the builder if necessary.

thanks for the reply, I think there’s two issues here, this may solve one, but I’m not sure how it solves the other.

I want the breadcrumb for the category to be home > english collection > seating england and the sub-category breadcrumb to be home > english collection > seating england > dining chairs.

The english coleection will be one template and the scottish collection will be a seperate template. Seating england represents the category and dining chairs represents the sub-category

I’m not understanding how your use of the term url for the assignment will help with the breadcrumb issue.

Any help is really appreciated

In the current implementation of the Assignment > Conditions, the WooCommerce Category Scot or Eng layouts are only applied to the parent category, but not to the subcategories. A better alternative is to check if the string “scotland” or “england” exists in the term URL. This way, you won’t have to create conditions for each category and probably avoid creating separate layouts for parent and subcategories.

We edited the WooCommerce Category Scot, removed all conditions, and replaced them with a single String-type condition with the rule | scotland > in > {{ term.url }} |, which means that if the text or string “scotland” is in the URL – which is true for both parent and subcategories – it will display the WooCommerce Category Scot layout.

That’s great, thanks. It’s working how I want it to, thankyou!

Just one hopefully small thing I want it to be space arrow space, between home / collection / category / su-category, but I can’t quite get it right.

on england it’s English Collection apace arrow space space Seating England no space arrow

and on sotland it scottish collection space arrow space Decorative Scotland no space arrow no space Blackboards / Easels

We adjusted the spacing of the breadcrumbs. You will need to apply these changes to the ENG version or copy the custom breadcrumb. Again, if you need more help with this type of custom modifications, please check out our One service.

that’s great thanks, I really appreciate your help with this.

Hello @simonwr1976,

Glad that we were able to help you.

Thanks

This is pretty much working as it should do now, which is great, but there’s one anomaly at the moment. On https://wordpress-1368127-5047106.cloudwaysapps.com/product-category/furniture-scotland/ the breadcrumb is showing Furniture Scotland New Stock Scotland. ‘New Stock Scotland’ shouldn’t be there. I can work out why this is happening, it’s only this category

We’ve done our best to assist you with this matter even though it falls outside the standard scope of our support. At this point, we’re not able to provide further help. We recommend consulting with a freelance developer or considering a subscription to our One service for more in-depth assistance.

Thank you for your understanding.