{"id":34730,"date":"2013-07-29T22:06:38","date_gmt":"2013-07-29T16:36:38","guid":{"rendered":"https:\/\/www.quickonlinetips.com\/archives\/?p=34730"},"modified":"2021-06-12T09:51:29","modified_gmt":"2021-06-12T04:21:29","slug":"add-icon-font-awesome","status":"publish","type":"post","link":"https:\/\/www.quickonlinetips.com\/archives\/2013\/07\/add-icon-font-awesome\/","title":{"rendered":"How to Add Font Awesome Icons to Any Site"},"content":{"rendered":"<p>icon Fonts are the buzz. Can you use Font awesome icons to any website and get beautiful scalable and CSS styled icons. Of course you can. I find myself using Font Awesome much more in my new website design projects. Initially I thought Font Awesome was a great <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2013\/07\/font-awesome-icons-in-bootstrap\/\">replacement for Glyphicons icons<\/a> in the amazing CSS design framework\u00a0<a href=\"https:\/\/www.quickonlinetips.com\/archives\/2013\/07\/twitter-bootstrap\/\">Twitter Bootstrap<\/a>, but it is a must have standalone for any site.<\/p>\n<p>See these Like icons, they are not images, but are all actually an <strong>icon font<\/strong> in different sizes.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-42217\" src=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/font-icons1.png\" alt=\"Font icons\" width=\"425\" height=\"156\" srcset=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/font-icons1.png 425w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/font-icons1-150x55.png 150w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/font-icons1-300x110.png 300w\" sizes=\"(max-width: 425px) 100vw, 425px\" \/><\/p>\n<p>All the large number of icons you see on this page are powered by <a href=\"https:\/\/fontawesome.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Font Awesome<\/a>. This is much better than loading multiple icons, or adding them with custom background and <a href=\"https:\/\/www.w3schools.com\/css\/css_image_sprites.asp\" rel=\"noopener\">CSS sprites<\/a>. Being an icon font, it has all the advantages of CSS styling &#8211; like color, size and crisp design even at large sizes as fonts can scale easily.<\/p>\n<h2>Install Font Awesome<\/h2>\n<p>Installation is a snap. Although you can download and install the font on your server and call the icons from your design, the best way to install is via <a href=\"https:\/\/www.bootstrapcdn.com\/fontawesome\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">BootstrapCDN<\/a> &#8211; add a single line of code in your HEAD tags \u00a0&#8211; and get Font Awesome pre-hosted on a <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2015\/09\/fastest-cdn-jquery-bootstrap\/\">fast CDN<\/a> for superfast delivery across anywhere in the world.<\/p>\n<p>Add this single line of code.<br \/>\n<code>&lt;link href=\"https:\/\/cdn.jsdelivr.net\/npm\/@fortawesome\/fontawesome-free@5.15.3\/css\/fontawesome.min.css\" rel=\"stylesheet\"&gt;<\/code><\/p>\n<h2>Using Font Awesome<\/h2>\n<p>Getting the icons anywhere on the site is so simple, you would be amazed. Simply use the <em><span style=\"color: #ff0000;\">i class<\/span> <\/em>to get the font icon of your choice. There are now over <strong>1000 free icons<\/strong> to choose from!<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-large wp-image-59259\" src=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/font-awesome-code-1024x935.jpg\" alt=\"Font awesome code\" width=\"760\" height=\"694\" srcset=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/font-awesome-code-1024x935.jpg 1024w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/font-awesome-code-300x274.jpg 300w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/font-awesome-code-150x137.jpg 150w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/font-awesome-code-768x701.jpg 768w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/font-awesome-code.jpg 1306w\" sizes=\"(max-width: 760px) 100vw, 760px\" \/><\/p>\n<p>For example.<br \/>\n<code>&lt;i class=\"fas fa-couch\"&gt;&lt;\/i&gt;<\/code> will display a couch icon<\/p>\n<p>Font awesome has amazing code options which allow you to <strong>stack multiple icons<\/strong> on each other, for example\u00a0<code>&lt;i class=\"fa-star fa-border\"&gt;&lt;\/i&gt;<\/code> will display a star icon with a border!<\/p>\n<p>Changing the <strong>icon size<\/strong> is also easy. For example\u00a0<code>&lt;i class=\"fa-star fa-3x\"&gt;&lt;\/i&gt;<\/code> will make the icon size 3 times larger. Its that simple.<\/p>\n<p>You can also <strong>flip icons<\/strong> by 90 degrees or any degree by adding classes like <em>fa-rotate-90<\/em>. Simply adding the class <em>muted<\/em> will make the icon dull. There are lots of amazing uses which you can check on their site&#8230;<\/p>\n<p>Right now, the best way to add scalable icons to you site is using Font Awesome &#8211; all with a single line of code!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>icon Fonts are the buzz. Can you use Font awesome icons to any website and get beautiful scalable and CSS&#8230;<\/p>\n","protected":false},"author":4,"featured_media":42217,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[6],"tags":[49],"class_list":["post-34730","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogging","tag-tutorials"],"_links":{"self":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/34730","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/comments?post=34730"}],"version-history":[{"count":0,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/34730\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/media\/42217"}],"wp:attachment":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/media?parent=34730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/categories?post=34730"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/tags?post=34730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}