By default the breadcrumbs look like: homepage > category > product.
I would like to change the greater than (>) symbol. The code that generates it is in
vendor/magento/magento2-base/lib/web/css/source/lib/_breadcrumbs.less
and looks like this:
.lib-breadcrumbs(
...
// Breadcrumbs separating symbol
@_breadcrumbs-separator-symbol: @breadcrumbs-separator__symbol,
...
& when not (@_breadcrumbs-separator-symbol = '') and not (@_breadcrumbs-separator-symbol = false) { // Insert separating symbol to "content"
.item:not(:last-child) {
&:after {
.lib-css(color, @_breadcrumbs-separator-color);
.lib-css(content, @_breadcrumbs-separator-symbol);
}
}
}
The only place I found a definition for @breadcrumbs-separator__symbol
is in
vendor/magento/magento2-base/lib/web/css/source/lib/variables/_breadcrumbs.less
where it is defined as false
@breadcrumbs-separator__symbol: false;
Overriding the @breadcrumbs-separator__symbol
resulted in a weird symbol:
instead of the symbol I chose.
To make things even more confusing, in the generated html, I see the content of the symbol is '\e608' and it looks like it comes from _icons.less
file.
Can anyone explain what's going on here and how to go about changing it?
Any help is appreciated!