Breadcrumb customization
-
Hi,
I’m using the Storefront theme [https://ww.wp.xz.cn/themes/storefront/]. One of the issues that I’m facing is the fact that the breadcrumbs aren’t quite correct. I’m currently putting all products into categories. When I’m viewing a product, the breadcrumb is “Home / ExampleCategory / ExampleProduct”. That is not really a big problem. However, when I’m viewing a category, the breadcrumb is “Home / ExampleCategory”. This is annoying because if the customer decides that this is not the category that they want to be in then they have to click on “Products” in the header rather than using the breadcrumb.
I tried a couple of things from this page:
http://docs.woothemes.com/document/customise-the-woocommerce-breadcrumb/
They seemed to work, but the examples given don’t explain the issue that I’m having.This post seems to describe my goals exactly:
https://ww.wp.xz.cn/support/topic/woocommerce-product-page-bread-crumbs-solution
However, when I put his code in functions.php of my child theme, it simply took my whole site offline as if there is some sort of syntax error in the code. Commenting the code out get’s my site running again.The above post links to this page in the WooCommerce Codex:
http://docs.woothemes.com/document/show-product-categories-in-wooframework-breadcrumbs/
If I copy and paste the code from that page to my functions.php, it has no effect whatsoever. My site continues to work as if I had changed nothing.Does anyone have any tips on what I’m doing wrong?
WordPress Version: 4.1.2
WooCommerce Version: 2.3.7
Storefront Version: 1.4.3Let me know if you need any more information. I would be willing to install updates if that would help.
My site is currently not publicly viewable, but I could possibly create a Read-Only login.
The topic ‘Breadcrumb customization’ is closed to new replies.