I am struggling to replace a background image in CSS with an icon font instead of an icon image. I have been unable to accomplish this task. Here is the CSS property I am working with:
.social-networks .twitter{background:url(../images/social/twitter.png);}
Below is the code written 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 method I am trying to use for inserting an icon font is
<span class="icon">A</span>