1

The breadcrumbs I get are like the following ones.

  • Home / services

  • Home / service 1

  • Home / service 2

I want to change them to the following ones.

  • Home / services

  • Homes / services / service 1

  • Homes / services / service 2

How can I change the breadcrumbs to be the way I want them?

1 Answer 1

4

In D8 the hierarchy of breadcrumbs is by default path based, so you have to change the path for the second level from /service1 to /services/service1

Or install a module to build the hierarchy based on menus or taxonomy terms:

https://www.drupal.org/project/menu_breadcrumb https://www.drupal.org/project/taxonomy_breadcrumb

2
  • +1 for menu breadcrumb. My best advice on breadcrumbs is to make it structure based and not try to inject things to the crumb chain that really do not exist. Menu makes it easy. Views should play nice too, if not, it is easy to alter for them.
    – Kevin
    Commented Nov 9, 2017 at 16:32
  • what about drupal.org/project/easy_breadcrumb ? Commented Nov 10, 2017 at 8:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.