Replacing Font Awesome Social Media Icons With Images

Wooneh picture Wooneh · Oct 30, 2015 · Viewed 9.7k times · Source

I've attempted to replace fa icons on blogger with custom icons using

.fa-facebook{content:url("")}

The images work on Chrome but not FF or IE. What's going on/Is there a workaround?

Jsfiddle

Google Chrome

Firefox

Answer

Alex picture Alex · Oct 30, 2015

According to W3school:

Definition and Usage

The content property is used with the :before and :after pseudo-elements, to insert generated content.

So instead of .fa-facebook{content:url("")} use .fa-facebook:before{content:url("")}

Jsfiddle