All I want to do is replace a background image in CSS with an icon font, not icon image.
I can’t get it done.
This is the CSS property:
.social-networks .twitter{background:url(../images/social/twitter.png);}
This is the code in PHP:
<ul class="social-networks">
<?php if (my_option('twitter_link')): ?>
<li>
<a href="<?php echo my_option('twitter_link'); ?>" class="twitter">twitter</a>
</li>
<?php endif; ?>
The way I insert an incon font is <span class="icon">A</span>
You could try something like this: FIDDLE
Let’s say you have your DIV:
you create your css style like this:
in the property
contentyou choose your “letter” and then you can change thefont-size,font-weight,color, etc…