Using Font Awesome Icons in Footer Widgets
-
I read about adding a class to incorporate Font Awesome icons, but it’s not working the way I want.
I added a text widget (using both the WordPress “Text” widget and Site Origin’s “Editor” widget — made no difference) to footer 3. Here’s the text I entered:
<div class="fa fa-mobile-phone"></div> 555-555-5555 <div class="fa fa-twitter"> @twitter-name</div>
As you can see, the first one has the phone outside the
div
; the second is inside thediv
. The result isn’t desirable. The first one moved the phone number below the icon. For the second, it changed the font face. In both cases the icon is tiny. You can see what I mean in this screen shot: https://goo.gl/vakCRQ(This isn’t a ‘live’ site, so to block search engines from finding it, I’m not adding the URL).
Here’s what I want:
1. Icon to the left of the text
2. Larger iconsI can do this via CSS using
::before
by finding the exact class/id using Chrome Dev Tools. However, I was hoping to avoid that.Any other ideas?
- The topic ‘Using Font Awesome Icons in Footer Widgets’ is closed to new replies.