Showing posts with label Dave Gandy. Show all posts
Showing posts with label Dave Gandy. Show all posts

Apr 26, 2013

Font Awesome Icons for your blog

font awesome icons

UPDATE November 13th, 2014: I originally used this post to vent about a customer who stole a set of social media icons from me... but, now revised it with helpful information on how you can use font awesome icons on your blog. Because I got over it.

I stumbled upon Font Awesome Icons by Dave Gandy and fell truly madly deeply in love.

Wordpress


I found Rachel Baker who understands geek code and made a Font Awesome Icons Wordpress plugin. The instructions for use are included on the plugin's page.

font awesome icons

Click image & scroll down to see all 479 (as of 11/13/14) icons that you can use on your blog.



Blogger


You can have these marvelous icons for Blogger, too, but of course there's a bit more to it then just adding a plugin. You'll need to add code to your template + style your HTML/Javascript widget to display your new icons. But, it's quick and easy - promise!

First insert the code below directly above <head> in your Blogger template:

<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"/>


Save your template.

Next we're going to add some CSS to give your icons the look you want. Add this code directly above the ]]></b:skin> section in your template:

/* Font Awesome Icons
----------------------------------------------- */
.fa {
color: $(link.color);
width: 20px;
height: 20px;
padding-top: 5px;
border-radius: 5px;
font-size: 18px;
}
.fa:hover {
color: $(link.hover.color);
}
#socialmedia a {
padding: 0px 2px;
}


Save your template.

Finally, add an HTML/Javascript gadget to your Blogger sidebar, here's the code I use in my blog template examples:

<div id="socialmedia" style="text-align: center;">
<a href="http://www.twitter.com/carrieloves" target="_blank" title="twitter">
<i class="fa fa-twitter fa-2x"></i>
</a>
<a href="http://www.facebook.com/carrie.koehmstedt/" target="_blank" title="facebook">
<i class="fa fa-facebook fa-2x"></i>
</a>
<a href="http://www.instagram.com/carrieloves" target="_blank" title="instagram">
<i class="fa fa-instagram fa-2x"></i>
</a>
<a href="http://www.bloglovin.com/en/blog/1686872" target="_blank" title="bloglovin'">
<i class="fa fa-heart fa-2x"></i>
</a>
<a href="http://www.pinterest.com/koehmstedt/" target="_blank" title="pinterest">
<i class="fa fa-pinterest fa-2x"></i>
</a>
<a href="http://www.carrieloves.com/contact/" title="contact">
<i class="fa fa-envelope fa-2x"></i>
</a>
</div>


You'll see that you have an A link + and an I link (instead of an IMG link) for your icons.

After you get up and running, you can place Font Awesome icons just about anywhere with the <i> tag.

Enjoy!