Font-awesome: Pseudo elements not working

Created on 12 Dec 2017  路  3Comments  路  Source: FortAwesome/Font-Awesome

All my icons show up fine when I use <i class="fas fa-link"></i>

However when I use:

.sidebar [data-toggle="collapse"]:before {
    content: "\f0c1";
    font-family: "Font Awesome 5 Free";
}

Its showing in chrome as an empty square. I'm using the webfonts/CSS version.

css question

Most helpful comment

Hi!

Thanks for being part of the Font Awesome Community.

Please add font-weight: 900;

https://jsfiddle.net/tagliala/tgzouajm/5/

Hope it helps

Closing here

All 3 comments

Hi!

Thanks for being part of the Font Awesome Community.

Please add font-weight: 900;

https://jsfiddle.net/tagliala/tgzouajm/5/

Hope it helps

Closing here

nope, not working

@JulioBastidas please provide a reproducible test case

We have a bug report template

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brystfire08 picture brystfire08  路  3Comments

tdolph picture tdolph  路  3Comments

ojvribeiro picture ojvribeiro  路  3Comments

omnimint picture omnimint  路  3Comments

petermolnar picture petermolnar  路  3Comments