Question about Breadcrumb functioning

Hi,

I’ve got the following question. I created an archive page with CS Form facets. I also added a custom function to functions.php which adds year and month taxonomies as URL parameters on archive page load taking into account current date. Thus on page load we initially output events from the current year and month.

Based on suggestion from Rue, I replaced the Query Builder Looper Provider for CTP events with the dafault one so that Pagination Element would work as expected. This time my question is related to the Breadcrumb Element.

When I add the element to the archive layout, it adds one of those prepolulated taxonomies. For some reason it returns month taxomony. So my question is how the Breadcrumb Element defines which taxonomy to put at the end of it? Is that selection based on alphabetical order of CTP of their IDs?

Due to my custom function actually prepolutaes month and year is there a way to define which of those two taxonomies will be actually shown at the end of breadcrumb? Finally, if I want to hide the last part of the breadcrumb which is taxonomy together with the last delimiter by leaving just home link delimiter custom post type link how do I do that?

Hello John,

Thanks for writing in!

To hide the last part of the breadcrumb which is taxonomy together with the last delimiter by leaving just home link delimiter custom post type link is to use custom CSS like for example:

.x-crumbs-list:has(.x-crumbs-current) .x-crumbs-list-item:last-child {
    display: none;
}

.x-crumbs-list:has(.x-crumbs-current) .x-crumbs-list-item:nth-last-child(2) .x-crumbs-delimiter {
    display: none;
}

The CSS code serves as an example. It may or may not work out of the box.

If you want to modify the breadcrumb, you may need to check this threads:

Best Regards.