Breadcrumb
Posted: Wed Sep 28, 2022 12:10 pm
Recently changing style of breadcrumb elements so sharing our changes here in case it helps others.
Standard breadcrumb shows: Want to change the style of the last element in the breadcrumb so it stands out as the current page (i.e. "you are here")
Breadcrumb now shows:
Could not find the breadcrumb separator defined in core so changed the style of the separator.
Alternatively, this does the same thing:
Breadcrumb now shows:
The code should be added to /templates/override/static/user.css
Standard breadcrumb shows: Want to change the style of the last element in the breadcrumb so it stands out as the current page (i.e. "you are here")
Code: Select all
/* Change style of last breadcrumb item */
.breadcrumb li:last-child a {
font-weight: bold;
}Could not find the breadcrumb separator defined in core so changed the style of the separator.
Code: Select all
/* Change style of breadcrumb separator */
.breadcrumb li.breadcrumb-item:not(:first-child)::before{
content: ">" !important;
}Code: Select all
/* Change style of breadcrumb separator */
.breadcrumb li.breadcrumb-item+li.breadcrumb-item::before{
content: ">" !important;
}The code should be added to /templates/override/static/user.css