• Hi,
    Is it possible to hide the Woocommerce parent category in breadcrumbs?
    My product page currently displays Home > Shop > Brands > Agripp > Akro – PE
    I want to hide the ‘Brands’ breadcrumb as this is a redundant term (every product has a brand).
    Thanks!
    (Note the site is currently behind a ‘coming soon’ page – the url provided will give access to the home page. I need help with the shop page.

    • This topic was modified 2 years, 3 months ago by ClimbCraft.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author John Havlik

    (@mtekk)

    Typically, if you need a hidden category, you typically should be using custom taxonomies for each of the major ‘category’ branches (i.e. have Brands as a custom taxonomy and Agripp as a term that is of the Brands taxonomy). That said, you can remove a breadcrumb from the trail by using the bcn_after_fill action and looping through the passed in breadcrumb array looking for the breadcrumb for the category in question and then removing it from the array. If you don’t want to write any code, there is a premium extension for Breadcrumb NavXT that provides a way to do this without writing any code.

Viewing 1 replies (of 1 total)
  • The topic ‘Hide Parent Category’ is closed to new replies.