{"id":136,"date":"2018-08-28T10:58:13","date_gmt":"2018-08-28T14:58:13","guid":{"rendered":"http:\/\/cipherdevelopment.com\/?p=136"},"modified":"2018-08-30T13:27:08","modified_gmt":"2018-08-30T17:27:08","slug":"font-awesome-wordpress-cdn","status":"publish","type":"post","link":"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/","title":{"rendered":"Add Font Awesome CDN to WordPress Without a Plugin"},"content":{"rendered":"\n<p>In case you&#8217;re not familiar, Font Awesome is a regularly-updated icon font from the people behind Twitter&#8217;s Bootstrap. According to their website:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Font Awesome gives you scalable vector icons that can instantly be customized \u2014 size, color, drop shadow, and anything that can be done with the power of <abbr title=\"Cascading Style Cheets\">CSS<\/abbr>.<\/p><\/blockquote>\n\n\n\n<p>If you&#8217;re going to use font icons, the Font Awesome <abbr title=\"Content Delivery Network\">CDN<\/abbr> version is wise choice for a number of reasons. Because the icons are served out using a global content delivery network, they&#8217;ll load quickly no matter where your website visitors are. Plus, because the Font Awesome CDN is used by tons of other sites, there&#8217;s a good chance your visitors will already have it cached in their browser. Mo&#8217; speed!<\/p>\n\n\n\n<p>There are a few different ways to use the Font Awesome CDN in WordPress. You could use a plugin, but I think the simplest method is to enqueue <a href=\"https:\/\/fontawesome.com\/how-to-use\/on-the-web\/setup\/getting-started?using=web-fonts-with-css\" target=\"_blank\" rel=\"noreferrer noopener\">Font Awesome&#8217;s free CDN<\/a> directly into your theme. It&#8217;s really easy to add to just about any WordPress theme.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Add the Following Code to Your Theme&#8217;s functions.php File:<\/h3>\n\n\n\n<pre class=\"wp-block-cedaro-code line-numbers\"><code class=\"language-php\">&lt;?php\nadd_action( 'wp_enqueue_scripts', 'prefix_enqueue_awesome' );\n\/**\n * Register and load font awesome CSS files using a CDN.\n *\/\nfunction prefix_enqueue_awesome() {\n\twp_enqueue_style( \n\t\t'font-awesome-5', \n\t\t'https:\/\/use.fontawesome.com\/releases\/v5.3.0\/css\/all.css', \n\t\tarray(), \n\t\t'5.3.0' \n\t);\n}<\/code><\/pre>\n\n\n\n<p>And that&#8217;s pretty much it. Once you&#8217;ve got the Font Awesome CDN loaded into your WordPress theme you can start adding scalable, retina-friendly font icons until your heart&#8217;s content.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"> It&#8217;s Like Icon Magic!<\/h2>\n\n\n\n<p>Neat, eh? Here&#8217;s a <a href=\"https:\/\/fontawesome.com\/cheatsheet\" target=\"_blank\" rel=\"noreferrer noopener\">complete list of all the available Font Awesome icons<\/a> you can use. If you have any questions or comments, leave &#8217;em bellow.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In case you&#8217;re not familiar, Font Awesome is a regularly-updated icon font from the people behind Twitter&#8217;s Bootstrap. According to their website: Font Awesome gives you scalable vector icons that can instantly be customized \u2014 size, color, drop shadow, and anything that can be done with the power of CSS. If you&#8217;re going to use <a rel=\"nofollow\" href=\"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/\" class=\"more-link\">[&hellip;]<\/a><\/p>\n","protected":false},"author":5,"featured_media":139,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[8],"tags":[],"class_list":{"0":"entry","1":"post","2":"publish","3":"post-136","5":"format-standard","6":"has-post-thumbnail","7":"category-tutorials"},"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Add Font Awesome CDN to WordPress Without a Plugin - Cipher<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Add Font Awesome CDN to WordPress Without a Plugin - Cipher\" \/>\n<meta property=\"og:description\" content=\"In case you&#8217;re not familiar, Font Awesome is a regularly-updated icon font from the people behind Twitter&#8217;s Bootstrap. According to their website: Font Awesome gives you scalable vector icons that can instantly be customized \u2014 size, color, drop shadow, and anything that can be done with the power of CSS. If you&#8217;re going to use [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/\" \/>\n<meta property=\"og:site_name\" content=\"Cipher\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/cipherdevgroup\" \/>\n<meta property=\"article:published_time\" content=\"2018-08-28T14:58:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-08-30T17:27:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.cipherdevelopment.com\/wp-content\/uploads\/2018\/08\/15121429\/font-awesome-without-a-plugin.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2730\" \/>\n\t<meta property=\"og:image:height\" content=\"1530\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Rob Neu\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@cipherdevgroup\" \/>\n<meta name=\"twitter:site\" content=\"@cipherdevgroup\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rob Neu\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/\"},\"author\":{\"name\":\"Rob Neu\",\"@id\":\"https:\/\/cipherdevelopment.com\/#\/schema\/person\/341db5914c908660547f1cd0e72f3238\"},\"headline\":\"Add Font Awesome CDN to WordPress Without a Plugin\",\"datePublished\":\"2018-08-28T14:58:13+00:00\",\"dateModified\":\"2018-08-30T17:27:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/\"},\"wordCount\":245,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/cipherdevelopment.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdn.cipherdevelopment.com\/wp-content\/uploads\/2018\/08\/15121429\/font-awesome-without-a-plugin.png\",\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/\",\"url\":\"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/\",\"name\":\"Add Font Awesome CDN to WordPress Without a Plugin - Cipher\",\"isPartOf\":{\"@id\":\"https:\/\/cipherdevelopment.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdn.cipherdevelopment.com\/wp-content\/uploads\/2018\/08\/15121429\/font-awesome-without-a-plugin.png\",\"datePublished\":\"2018-08-28T14:58:13+00:00\",\"dateModified\":\"2018-08-30T17:27:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/#primaryimage\",\"url\":\"https:\/\/cdn.cipherdevelopment.com\/wp-content\/uploads\/2018\/08\/15121429\/font-awesome-without-a-plugin.png\",\"contentUrl\":\"https:\/\/cdn.cipherdevelopment.com\/wp-content\/uploads\/2018\/08\/15121429\/font-awesome-without-a-plugin.png\",\"width\":2730,\"height\":1530},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cipherdevelopment.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add Font Awesome CDN to WordPress Without a Plugin\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cipherdevelopment.com\/#website\",\"url\":\"https:\/\/cipherdevelopment.com\/\",\"name\":\"Cipher\",\"description\":\"Professional WordPress Development\",\"publisher\":{\"@id\":\"https:\/\/cipherdevelopment.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cipherdevelopment.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/cipherdevelopment.com\/#organization\",\"name\":\"Cipher Development, LLC\",\"url\":\"https:\/\/cipherdevelopment.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cipherdevelopment.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdn.cipherdevelopment.com\/wp-content\/uploads\/2018\/07\/15121512\/logo-yellow-white.jpg\",\"contentUrl\":\"https:\/\/cdn.cipherdevelopment.com\/wp-content\/uploads\/2018\/07\/15121512\/logo-yellow-white.jpg\",\"width\":3334,\"height\":1667,\"caption\":\"Cipher Development, LLC\"},\"image\":{\"@id\":\"https:\/\/cipherdevelopment.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/cipherdevgroup\",\"https:\/\/x.com\/cipherdevgroup\",\"https:\/\/www.instagram.com\/cipherdevgroup\/\",\"https:\/\/www.linkedin.com\/company\/cipherdevgroup\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/cipherdevelopment.com\/#\/schema\/person\/341db5914c908660547f1cd0e72f3238\",\"name\":\"Rob Neu\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/f3f00950ce3ef2fbea47c10252cf321aafb0e76e7a96cf7ce5cc27ca09bc0119?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f3f00950ce3ef2fbea47c10252cf321aafb0e76e7a96cf7ce5cc27ca09bc0119?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f3f00950ce3ef2fbea47c10252cf321aafb0e76e7a96cf7ce5cc27ca09bc0119?s=96&d=mm&r=g\",\"caption\":\"Rob Neu\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Add Font Awesome CDN to WordPress Without a Plugin - Cipher","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/","og_locale":"en_US","og_type":"article","og_title":"Add Font Awesome CDN to WordPress Without a Plugin - Cipher","og_description":"In case you&#8217;re not familiar, Font Awesome is a regularly-updated icon font from the people behind Twitter&#8217;s Bootstrap. According to their website: Font Awesome gives you scalable vector icons that can instantly be customized \u2014 size, color, drop shadow, and anything that can be done with the power of CSS. If you&#8217;re going to use [&hellip;]","og_url":"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/","og_site_name":"Cipher","article_publisher":"https:\/\/www.facebook.com\/cipherdevgroup","article_published_time":"2018-08-28T14:58:13+00:00","article_modified_time":"2018-08-30T17:27:08+00:00","og_image":[{"width":2730,"height":1530,"url":"https:\/\/cdn.cipherdevelopment.com\/wp-content\/uploads\/2018\/08\/15121429\/font-awesome-without-a-plugin.png","type":"image\/png"}],"author":"Rob Neu","twitter_card":"summary_large_image","twitter_creator":"@cipherdevgroup","twitter_site":"@cipherdevgroup","twitter_misc":{"Written by":"Rob Neu","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/#article","isPartOf":{"@id":"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/"},"author":{"name":"Rob Neu","@id":"https:\/\/cipherdevelopment.com\/#\/schema\/person\/341db5914c908660547f1cd0e72f3238"},"headline":"Add Font Awesome CDN to WordPress Without a Plugin","datePublished":"2018-08-28T14:58:13+00:00","dateModified":"2018-08-30T17:27:08+00:00","mainEntityOfPage":{"@id":"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/"},"wordCount":245,"commentCount":2,"publisher":{"@id":"https:\/\/cipherdevelopment.com\/#organization"},"image":{"@id":"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.cipherdevelopment.com\/wp-content\/uploads\/2018\/08\/15121429\/font-awesome-without-a-plugin.png","articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/","url":"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/","name":"Add Font Awesome CDN to WordPress Without a Plugin - Cipher","isPartOf":{"@id":"https:\/\/cipherdevelopment.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/#primaryimage"},"image":{"@id":"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.cipherdevelopment.com\/wp-content\/uploads\/2018\/08\/15121429\/font-awesome-without-a-plugin.png","datePublished":"2018-08-28T14:58:13+00:00","dateModified":"2018-08-30T17:27:08+00:00","breadcrumb":{"@id":"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/#primaryimage","url":"https:\/\/cdn.cipherdevelopment.com\/wp-content\/uploads\/2018\/08\/15121429\/font-awesome-without-a-plugin.png","contentUrl":"https:\/\/cdn.cipherdevelopment.com\/wp-content\/uploads\/2018\/08\/15121429\/font-awesome-without-a-plugin.png","width":2730,"height":1530},{"@type":"BreadcrumbList","@id":"https:\/\/cipherdevelopment.com\/font-awesome-wordpress-cdn\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cipherdevelopment.com\/"},{"@type":"ListItem","position":2,"name":"Add Font Awesome CDN to WordPress Without a Plugin"}]},{"@type":"WebSite","@id":"https:\/\/cipherdevelopment.com\/#website","url":"https:\/\/cipherdevelopment.com\/","name":"Cipher","description":"Professional WordPress Development","publisher":{"@id":"https:\/\/cipherdevelopment.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cipherdevelopment.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/cipherdevelopment.com\/#organization","name":"Cipher Development, LLC","url":"https:\/\/cipherdevelopment.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cipherdevelopment.com\/#\/schema\/logo\/image\/","url":"https:\/\/cdn.cipherdevelopment.com\/wp-content\/uploads\/2018\/07\/15121512\/logo-yellow-white.jpg","contentUrl":"https:\/\/cdn.cipherdevelopment.com\/wp-content\/uploads\/2018\/07\/15121512\/logo-yellow-white.jpg","width":3334,"height":1667,"caption":"Cipher Development, LLC"},"image":{"@id":"https:\/\/cipherdevelopment.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/cipherdevgroup","https:\/\/x.com\/cipherdevgroup","https:\/\/www.instagram.com\/cipherdevgroup\/","https:\/\/www.linkedin.com\/company\/cipherdevgroup"]},{"@type":"Person","@id":"https:\/\/cipherdevelopment.com\/#\/schema\/person\/341db5914c908660547f1cd0e72f3238","name":"Rob Neu","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f3f00950ce3ef2fbea47c10252cf321aafb0e76e7a96cf7ce5cc27ca09bc0119?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f3f00950ce3ef2fbea47c10252cf321aafb0e76e7a96cf7ce5cc27ca09bc0119?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f3f00950ce3ef2fbea47c10252cf321aafb0e76e7a96cf7ce5cc27ca09bc0119?s=96&d=mm&r=g","caption":"Rob Neu"}}]}},"_links":{"self":[{"href":"https:\/\/cipherdevelopment.com\/wp-json\/wp\/v2\/posts\/136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cipherdevelopment.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cipherdevelopment.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cipherdevelopment.com\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/cipherdevelopment.com\/wp-json\/wp\/v2\/comments?post=136"}],"version-history":[{"count":0,"href":"https:\/\/cipherdevelopment.com\/wp-json\/wp\/v2\/posts\/136\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cipherdevelopment.com\/wp-json\/wp\/v2\/media\/139"}],"wp:attachment":[{"href":"https:\/\/cipherdevelopment.com\/wp-json\/wp\/v2\/media?parent=136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cipherdevelopment.com\/wp-json\/wp\/v2\/categories?post=136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cipherdevelopment.com\/wp-json\/wp\/v2\/tags?post=136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}