最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

woocommerce offtopic - How can I change the functionality of breadcrumbs?

programmeradmin2浏览0评论

So I've tried with the Woocommerce breadcrumbs and a plugin called Breadcrumbs NAVXT. Both show the breadcrumbs when I go from a category to a product, the subcategory in the breadcrumbs. Even though whenever I click on a product, I want the breadcrumbs leading to that page. So when I go for example from:

miscellaneous -> product1

I don't want the breadcrumbs:

miscellaneous -> subcategory -> product1

Only if I actually went to the product through that subcategory. I looked at the documentation of the plugin:

/

And it has filters and actions, but not with a lot of explanation. I've also searched how to do this with the default Woocommerce breadcrumbs, but I can't find how to do that in Woocommerce either.

There must be a setting or set the way the breadcrumbs should work right? I've also tried to turn on and off some options in the plugin settings, but it didn't give me the desired output either.

So I've tried with the Woocommerce breadcrumbs and a plugin called Breadcrumbs NAVXT. Both show the breadcrumbs when I go from a category to a product, the subcategory in the breadcrumbs. Even though whenever I click on a product, I want the breadcrumbs leading to that page. So when I go for example from:

miscellaneous -> product1

I don't want the breadcrumbs:

miscellaneous -> subcategory -> product1

Only if I actually went to the product through that subcategory. I looked at the documentation of the plugin:

https://nl.wordpress/plugins/breadcrumb-navxt/

And it has filters and actions, but not with a lot of explanation. I've also searched how to do this with the default Woocommerce breadcrumbs, but I can't find how to do that in Woocommerce either.

There must be a setting or set the way the breadcrumbs should work right? I've also tried to turn on and off some options in the plugin settings, but it didn't give me the desired output either.

Share Improve this question asked Mar 19, 2020 at 10:03 LokoLoko 1112 bronze badges 6
  • With default WooCommerce breadcrumbs, you can easily manage when to show or hide the breadcrumbs. Refer to this documentation : docs.woocommerce/document/conditional-tags – Patrice Poliquin Commented Mar 19, 2020 at 14:21
  • @PatricePoliquin I'm sorry but how would I make it so when I go through Miscellaneous -> product1 it shows that, and when I go through miscellaneous -> subcategory -> product1 to show the subcategory as well? I can't find that in the link you provided. – Loko Commented Mar 19, 2020 at 14:45
  • @Loko have you found the solution? – Mantas Lukosevicius Commented Mar 27, 2021 at 13:13
  • 1 @MantasLukosevicius I used a plugin to fix this – Loko Commented Mar 27, 2021 at 17:01
  • @Loko can you tell which one? – Mantas Lukosevicius Commented Mar 29, 2021 at 6:22
 |  Show 1 more comment

1 Answer 1

Reset to default 0

Have you tried using Yoast SEO Plugin? It offers breadcrumbs setup in its dashboard.

Just go to the plug setting and follow these settings

  • Click on ‘Search Appearance’.

  • Click on the ‘Breadcrumbs’ tab.

  • Toggle the ‘Breadcrumbs’ switch and configure the settings according to your requirements.

Do let me know if it doesn't work! Thanks

发布评论

评论列表(0)

  1. 暂无评论