- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
WordPress. How to replace FontAwesome icons with images
November 1, 2014
This video tutorial will show you how to replace FontAwesome icons with images.
WordPress. How to replace FontAwesome icons with images
-
Log into your WordPress Admin Panel:
-
Go to ‘Media’, click ‘Add New’ to add your image:
-
Upload your image, then click ‘edit’ to get the direct link to this image:
-
Copy this direct link to the image:
-
Inspect the icon that you want to change with Firebug (you can check the tutorial on how to use firebug), you will see the code for it, for example:
.icon-star:before { content: ""; }
-
Edit that code using this rule:
.icon-star:before { content: url("http://template-test.com/elina/wordpress/wp-content/uploads/2014/09/icons_star1.gif") !important;}
where "http://template-test.com/elina/wordpress/wp-content/uploads/2014/09/icons_star1.gif" is the link to your image and !important command to overwrite the old code. Then copy this code:
-
From Admin panel, go to Appearance -> Editor. Open ‘style.css’ file of the current theme. Then paste the code from step 6 to the bottom of this ‘style.css’ file. Click “Update File":
-
Refresh your website to see the new image that you have replaced:
Feel free to check the detailed video tutorial below: