• Hot
  • Top
  • New
2
votes

You have ... votes left in this category for this week!

completed

Add existing filters to woocommerce breadcrumbs

Krzysztof shared this feature

December 19, 2020

This should be an optional configuration: Do not reset filters when clicking breadcrumbs

The default category breadcrumb URLs should contain filters just like FWW Product Categories widget with this option enabled: https://prnt.sc/w64m3a

e.g. existing filter is black: https://foundthru.com/product-category/dogs/dog-bowls/black/

I would like to change my breadcrumbs
from this: https://foundthru.com/product-category/dogs/
to this: https://foundthru.com/product-category/dogs/black/

feature attachments:

6 Comments

  1. Krzysztof T.
    December 20, 2020 @ 1:12 am

    We can use ‘woocommerce_get_breadcrumb’ filter hook:
    https://stackoverflow.com/a/48897651
    https://stackoverflow.com/a/52434698

    Reply

  2. Krzysztof T.
    February 14, 2021 @ 2:14 pm

    How other plugins solve this issue (https://wordpress.org/plugins/permalink-manager/):

    “Breadcrumbs support

    If enabled, the HTML breadcrumbs will be filtered by the plugin to mimic the current URL structure.
    Works with: WooCommerce, Yoast SEO, RankMath and SEOPress breadcrumbs.”

    Reply

  3. Krzysztof T.
    February 14, 2021 @ 9:27 pm

    Reply

  4. Krzysztof T.
    March 4, 2021 @ 2:11 pm

    This is how it’s done in Permalink Manager:
    https://gist.github.com/twarrdy/ee4a5c4188eaa659cebfb42a2c783c93

    Reply

    • Dave H.
      March 5, 2021 @ 7:29 am

      Cool – that looks easy – thanks for the help and the function link.

      Reply

  5. Dave H.
    March 30, 2021 @ 5:31 pm

    Implemented in beta 2.46

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Subscribe!

We publish performance optimisation guides regularly.

Subscribe so you never miss out.

We use cookies

We use cookies for various things on our site, including our on-site chat bubble (if you use it), our comment forms (if you use them) and for session handling (if you log in).

Other than that, we use cookies to identify where traffic came from to help us understand which traffic turns into sales, we use a cookie for Google Analytics traffic analysis and we use a cookie to customise adverts for our own products we think you'll be interested in.

You can read more detail in our privacy policy page. Please click 'Accept' or 'Decline' to continue.