I have searched for a solution to this question multiple times, but none of the answers I find seem to work. For example, Bootstrap modify breadcrumb with fontawesome icon separator with SASS
My setup includes Font Awesome 5 Pro (from their CDN, kit.fontawesome.com
) and Bootstrap 4.0.0
The task at hand is to replace the default Bootstrap 4 breadcrumb separator with a FontAwesome icon.
The following is my markup:
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#">Home</a></li>
<li class="breadcrumb-item active" aria-current="page">Library</li>
</ol>
</nav>
Despite trying the suggested solutions, the rendering is not as expected - only displaying a "square".
I am attempting to use the unicode f061
, expecting a "right arrow", referenced here: https://fontawesome.com/icons/arrow-right
Here are some examples -
.breadcrumb-item + .breadcrumb-item::before {
font-family: 'Font Awesome 5 Pro';
content: "\f061";
}
https://i.sstatic.net/yps33.png
.breadcrumb-item + .breadcrumb-item::before {
font-family: "Font Awesome 5 Pro";
content: "\f061";
font-weight: 900;
}
https://i.sstatic.net/bpRX4.png
It is worth mentioning that icons render correctly when placed inside the document using
<i class="fas fa-arrow-right"></i>
. The issue lies in referencing it within the CSS where the icon does not display. There are no 404 errors or resource loading problems.
What could be the reason behind this issue?