woocommerce attributes slug differs from breadcrumb

#218702
  • Resolved Aquainfo
    Rank Math pro

    Hi,

    When I look at the Woocommerce breadcrumb for attributes, it differs from the url slug?

    For instance this page: https://aquainfo.org/origin/south-america/
    The breadcrumbs shows: Home » Product Origin » South America

    Is there a way to change the breadcrumb to show: “Home » Origin » South America” leaving out the term Product?

    Also the links are not working in the breadcrumbs for attributes?

    Best regards,

    John de Lange

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    Could you please check your product base on your WordPress dashboard > Settings > Permalinks if it is set there as Product Origin? If so, try changing it there and check if the issue still persists.

    Also the links are not working in the breadcrumbs for attributes?

    Could you please provide the URL for your product attributes? I’ve tried /origin/ and /product-origin/, but they are returning a page not found error.

    Looking forward to helping you.

    Thank you.

    The product attribute base is empty in Permalinks

    Product attribute base [empty field ] /attribute-name/attribute/

    When I add “info” to the empty field in attribute Permalinks, the URL changes to https://aquainfo.org/info/origin/south-america/

    The breadcrumbs stay the same: Home » Product Origin » South America

    ————

    Regarding the URL for the product attributes, I don’t think they have a working URL for the attribute category. Just checked another website using Yoast, not working there either in breadcrumbs.

    Brian
    Rank Math free

    Hello,

    Thank you for getting back to us.

    The breadcrumbs you are referring to are selectively from WooCoommerce and it seems that they are generated from the class woocommerce-breadcrumb. At the moment we do not have a method to.

    I’m afraid this the default way WooCommerce is generating breadcrumbs for product variations and there is no hook/filter to change that.

    With Rank Math, you can make use of this filter to change the strings of your breadcrumb to whatever you want: https://rankmath.com/kb/filters-hooks-api-developer/#change-breadcrumb-strings

    Just to add, another solution I might have come across on the research is the one used here: https://justabill.blog/remove-product-from-woocommerce-attribute-breadcrumbs/

    Please do let us know if this helps.
    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘woocommerce attributes slug differs from breadcrumb’ is closed to new replies.