{"id":9699,"date":"2020-11-11T10:56:23","date_gmt":"2020-11-11T15:56:23","guid":{"rendered":"https:\/\/www.med.unc.edu\/webguide\/?page_id=9699"},"modified":"2025-11-18T09:39:00","modified_gmt":"2025-11-18T14:39:00","slug":"font-awesome-icon","status":"publish","type":"page","link":"https:\/\/www.med.unc.edu\/webguide\/userguide\/styling-content\/font-awesome-icon\/","title":{"rendered":"Font Awesome Icons"},"content":{"rendered":"<p>Font Awesome makes it easy to add icons to your website. You can see a full list of the free icons available to use at <a class=\"imageBorder\" href=\"https:\/\/fontawesome.com\/v5\/search?m=free\">fontawesome.com<\/a> under the list of free icons. <strong>We currently have access to the <a href=\"https:\/\/fontawesome.com\/v5\/search?m=free\">free icons available in\u00a0Font Awesome 5.14.0<\/a><\/strong>. Follow these instructions to add icons to your site.<\/p>\n<div style=\"margin: 50px 0;\"><div class=\"row  oscitas-bootstrap-container\">\n<div class=\"col-lg-4 col-md-4 col-xs-12 col-sm-12 oscitas-bootstrap-container\">\n<p style=\"text-align: center;\"><i class=\" fas fa-user fa-4x \" style=\"color:#007fae;\"><\/i>\n<h2 style=\"text-align: center; color: #007fae;\">People<\/h2>\n<\/div>\n<div class=\"col-lg-4 col-md-4 col-xs-12 col-sm-12 oscitas-bootstrap-container\">\n<p style=\"text-align: center;\"><i class=\" far fa-newspaper fa-4x \" style=\"color:#007fae;\"><\/i>\n<h2 style=\"text-align: center; color: #007fae;\">News<\/h2>\n<\/div>\n<div class=\"col-lg-4 col-md-4 col-xs-12 col-sm-12 oscitas-bootstrap-container\">\n<p style=\"text-align: center;\"><i class=\" far fa-calendar-alt fa-4x \" style=\"color:#007fae;\"><\/i>\n<h2 style=\"text-align: center; color: #007fae;\">Events<\/h2>\n<\/div>\n<\/div>\n<\/div>\n<h2>1. Add the Shortcode<\/h2>\n<p>Copy the shortcode below and paste it into a page, post, event, etc. This will add a Carolina blue (#007fae) calendar icon to the page.<\/p>\n<p><code>[icon type=\"far fa-calendar-alt fa-3x\" color=\"#007fae\"]<\/code><\/p>\n<h2>2. Customize the Icon<\/h2>\n<p><span class=\"imgBorderMed\">Select the icon you wish to use on <a href=\"https:\/\/fontawesome.com\/icons?d=gallery&amp;m=free\">fontawesome.com<\/a> and locate the code at the top of the page. Copy the code <strong>inside the quotation marks. <\/strong>\u00a0In the example below, you would copy the &#8220;<strong>fas fa-desktop<\/strong>&#8221; and paste it into the existing shortcode (listed above), replacing the fa-calendar-alt.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"imageBorder alignnone wp-image-8202\" src=\"https:\/\/www.med.unc.edu\/webguide\/wp-content\/uploads\/sites\/419\/2020\/11\/Screen-Shot-2020-11-09-at-11.49.47-AM.png\" alt=\"Example showing where to find the needed css class for an icon.\" width=\"2178\" height=\"736\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>2. Set the Icon Size<\/h2>\n<p>The <strong>fa-3x<\/strong> in the shortcode specifies the size of the icon. This can be modified to change the icon size.\u00a0 The size options and their corresponding code are listed below. Simply change the shortcode to the size you prefer.<\/p>\n<div class=\"row  oscitas-bootstrap-container\">\n<div class=\"col-lg-3 col-md-3 col-xs-6 col-sm-6 oscitas-bootstrap-container\">\n<p style=\"text-align: center;\"><strong>fa-1x (default)<\/strong><\/p>\n<p style=\"text-align: center;\"><i class=\" fas fa-desktop \" style=\"color:#007fae;\"><\/i>\n<\/div>\n<div class=\"col-lg-3 col-md-3 col-xs-6 col-sm-6 oscitas-bootstrap-container\">\n<p style=\"text-align: center;\"><strong>fa-2x<\/strong><\/p>\n<p style=\"text-align: center;\"><i class=\" fas fa-desktop fa-2x \" style=\"color:#007fae;\"><\/i>\n<\/div>\n<div class=\"col-lg-3 col-md-3 col-xs-6 col-sm-6 oscitas-bootstrap-container\">\n<p style=\"text-align: center;\"><strong>fa-3x<\/strong><\/p>\n<p style=\"text-align: center;\"><i class=\" fas fa-desktop fa-3x \" style=\"color:#007fae;\"><\/i>\n<\/div>\n<div class=\"col-lg-3 col-md-3 col-xs-6 col-sm-6 oscitas-bootstrap-container\">\n<p style=\"text-align: center;\"><strong>fa-4x<\/strong><\/p>\n<p style=\"text-align: center;\"><i class=\" fas fa-desktop fa-4x \" style=\"color:#007fae;\"><\/i>\n<\/div>\n<\/div>\n<h2>3. Set the Icon Color<\/h2>\n<p>Finally, you can change the color of the icon. Typically the icon should be <strong>#007FAE<\/strong> (Carolina blue) or <strong>#13294B<\/strong> (Carolina Athletics navy) on a white or light background or <strong>#FFFFFF<\/strong> (white) on a dark background. These are official Carolina colors as defined by the <a href=\"https:\/\/identity.unc.edu\/brand\/color-palette\/\">University Branding and Identity Guidelines<\/a>.<br \/>\n<div class=\"row  oscitas-bootstrap-container\">\n<div class=\"col-lg-4 col-md-4 col-xs-12 col-sm-4 oscitas-bootstrap-container\">\n<p style=\"text-align: center; padding: 20px;\"><i class=\" fas fa-desktop fa-3x \" style=\"color:#007fae;\"><\/i>\n<p style=\"text-align: center;\">#007fae is Carolina blue<\/p>\n<\/div>\n<div class=\"col-lg-4 col-md-4 col-xs-12 col-sm-4 oscitas-bootstrap-container\">\n<p style=\"text-align: center; padding: 20px;\"><i class=\" fas fa-desktop fa-3x \" style=\"color:#13294B;\"><\/i>\n<p style=\"text-align: center;\">#13294B is Carolina Athletics navy<\/p>\n<\/div>\n<div class=\"col-lg-4 col-md-4 col-xs-12 col-sm-4 oscitas-bootstrap-container\">\n<p style=\"display: block; background-color: #007fae; padding: 20px; width: 100px; margin: 0 auto 1.563rem;\"><i class=\" fas fa-desktop fa-3x \" style=\"color:#fff;\"><\/i>\n<p style=\"text-align: center;\">#ffffff is white<\/p>\n<\/div>\n<\/div>\n<hr  style=\"margin:60px 0\"class=\" rule-thin osc-rule\" \/>\n<h2>Examples<\/h2>\n<p><span class=\"imgBorderMed\"><img loading=\"lazy\" decoding=\"async\" class=\"imageBorder alignnone\" src=\"https:\/\/www.med.unc.edu\/webguide\/wp-content\/uploads\/sites\/419\/2020\/11\/surgery-icons.jpg\" alt=\"Example of the Font Awesome Icons being used on the Surgery website.\" width=\"903\" height=\"603\" \/><\/span><\/p>\n<p><a class=\"imageBorder alignnone wp-image-8202\" href=\"https:\/\/www.med.unc.edu\/surgery\/\">Surgery<\/a> displays several Font Awesome icons on their home page.<\/p>\n<hr  style=\"margin:40px 0\"class=\" rule-thin osc-rule\" \/>\n<p><span class=\"imgBorderMed\"><img loading=\"lazy\" decoding=\"async\" class=\"imageBorder alignnone wp-image-9854 size-large\" src=\"https:\/\/www.med.unc.edu\/webguide\/wp-content\/uploads\/sites\/419\/2020\/11\/AHS-screenshot-673x1024.png\" alt=\"Example of the Font Awesome Icons being used on the Health Sciences homepage.\" width=\"673\" height=\"1024\" \/><\/span><\/p>\n<p><a href=\"https:\/\/www.med.unc.edu\/healthsciences\/\">Allied Health Sciences<\/a> also displays Font Awesome icons on their home page.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Font Awesome makes it easy to add icons to your website. You can see a full list of the free icons available to use at fontawesome.com under the list of free icons. We currently have access to the free icons available in\u00a0Font Awesome 5.14.0. Follow these instructions to add icons to your site. 1. Add &hellip; <a href=\"https:\/\/www.med.unc.edu\/webguide\/userguide\/styling-content\/font-awesome-icon\/\" aria-label=\"Read more about Font Awesome Icons\">Read more<\/a><\/p>\n","protected":false},"author":64010,"featured_media":0,"parent":2212,"menu_order":13,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"layout":"","cellInformation":"","apiCallInformation":"","footnotes":"","_links_to":"","_links_to_target":""},"class_list":["post-9699","page","type-page","status-publish","hentry","odd"],"acf":[],"_links_to":[],"_links_to_target":[],"_links":{"self":[{"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/pages\/9699","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/users\/64010"}],"replies":[{"embeddable":true,"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/comments?post=9699"}],"version-history":[{"count":0,"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/pages\/9699\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/pages\/2212"}],"wp:attachment":[{"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/media?parent=9699"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}