2.4 Breadcrumbs
-
The
woocommerce_breadcrumb();function doesn’t work in the Product Attributes Archive Page, it returns empty.
-
@ameraz Thank you very much for letting me know about it.
Just include support for product attributes in our breadcrumb:
https://github.com/woothemes/woocommerce/commit/893d0e40daffe89ad7a9cc3cd9e371efd52b9f61It will be available in version 2.4.4, later today.
Brilliant, cheers!!
Thank you very much for the prompt reply.
One question though, my Breadcrumbs are missing the Shop Home link, whenever inside a Product Category, Product Attribute Archive or Product Single Page. It currently displays:
– in the Shop home page:
Home > Shop
– in Product Category page:
Home > Product Category
– in Product Attribute page:
Home > Product Attribute Taxonomy > Product Attribute
– in Product Single:
Home > Product Category > Product TitleWhat is expected anywhere inside the Shop:
Home > Shop > * > *Is it that I’m missing something in the config? or is it an error?
I hope this query isn’t out of place, and it is a *really* basic query that I expect anyone with a bit of WooCommerce knowledge can help with, and yes it is re breadcrumbs!!
If I have a generic WooC site set up with a set of categories, and the shop slug is ‘shop’ as default then the url and breadcrumb to view the products or categories in shop are:-
domain.com/shop/
Home / ShopThen when I link to a category to show the products they become:-
domain.com/product-category/category1/
Home / Category 1Then when I link to a product in the category they become:-
domain.com/product/product1/
Home / Category 1 / Product 1My question is can the permalinks be set up in such a way that the breadcrumbs and urls can be standardised to become, using the above example:-
domain.com/shop
Home / Shopthen
domain.com/shop/category1
Home / Shop / Category 1then
domain.com/shop/category1/product1
Home / Shop / Category 1 / Product 1So that the url and breadcrumb structure is standardised?
Many thanks for comments by anyone looking at this that can help!
Chris@fibdes Yes, it’s out of place and violates the WordPress forum rules: http://codex.wordpress.org/Forum_Welcome#Where_To_Post
@ameraz Honestly it depends on your setup, but I’ll check it.
Because I think you should keep the “shop” in all links. Usually I use the homepage as shop and perhaps I did not realize it.
@ameraz I just checked, this will depend on the slug of your products.
If your page has the “shop” slug you need to set up the “Product permalink base” in “Permalink Settings” as
/shop/.Hey @claudio Sanches,
thanks for the great support.You’re right, my permalinks weren’t set up correctly. I’ve set them up as “Shop base with category” and it works. But when browsing a Product Attribute Archive Page, the Shop home page is not being included in the breadcrumbs.
Perhaps core needs one last final tweak.
Cheers bro!
The topic ‘2.4 Breadcrumbs’ is closed to new replies.