{"id":4095,"date":"2020-05-23T00:09:51","date_gmt":"2020-05-23T00:09:51","guid":{"rendered":"https:\/\/the7kennisbank.nl\/?p=4095"},"modified":"2020-05-23T19:53:09","modified_gmt":"2020-05-23T19:53:09","slug":"how-to-add-custom-social-icon-from-fontawesome","status":"publish","type":"post","link":"https:\/\/the7kennisbank.nl\/en\/dream-theme-support-portal\/how-to-add-custom-social-icon-from-fontawesome\/","title":{"rendered":"How to add custom social icon from FontAwesome?"},"content":{"rendered":"<p>How to add custom social icon from FontAwesome?<\/p>\n<div id='wrapper'>\n<div class='inner-content'>\n<p>To add custom social icon from FontAwesome collection to the theme, please go here and pick your desired icon:<br \/><\/br><a href='https:\/\/fontawesome.com\/icons?d=gallery&#038;s=brands&#038;m=free'>FontAwesome Social Icons<\/a><\/p>\n<p>When you pick your icon, please copy its code, you will need it later.<br \/><\/br>In this tutorial, we will add the Digg icon:<br \/><\/br><a href='https:\/\/fontawesome.com\/icons\/digg?style=brands'>https:\/\/fontawesome.com\/icons\/digg?style=brands<\/a><br \/><\/br>Its code is <strong>f1a6<\/strong><br \/><\/br><a href='https:\/\/i.imgur.com\/nbDwxc7.jpg' class='autohyperlink'>https:\/\/i.imgur.com\/nbDwxc7.jpg<\/a><\/p>\n<p>When you got the code of your desired icon, please make sure you&rsquo;re using the child theme and put the following code in your child theme&rsquo;s <strong>functions.php<\/strong> file:<\/p>\n<pre class='brush: plain; title: ; notranslate' title=''>function my_presscore_get_social_icons_data($icons) {$icons['digg'] = __('Digg', 'the7mk2');return $icons;}add_filter( 'presscore_get_social_icons_data', 'my_presscore_get_social_icons_data' );<\/pre>\n<p>Remember to change the social network name to your desired &ndash; please keep the first appearance of the name ($icons[&lsquo;<strong>digg<\/strong>&lsquo;]) in lowercase.<\/p>\n<p>Next, please go to <strong>Theme Options -&gt; Advanced -&gt; Custom CSS<\/strong> and put in the following CSS code:<\/p>\n<pre class='brush: plain; title: ; notranslate' title=''>.digg .soc-font-icon:before, .dt-icon-digg:before {    content: &quot;f1a6&quot;;}.digg .soc-font-icon{    font-family: &quot;Font Awesome 5 Brands&quot; !important;    font-weight:900;}<\/pre>\n<p>Here you need to change the names of classes (digg) to the name of the network you&rsquo;ve used in the code before ($icons[&lsquo;<strong>digg<\/strong>&lsquo;]), and the code of the icon (content: &ldquo;<strong>f1a6<\/strong>&ldquo;;), to the code of the icon you&rsquo;ve picked &ndash; remember to keep the slash &ldquo;&rdquo; before the code.<\/p>\n<p>After that, please go to <strong>Theme Options -&gt; Top Bar &amp; Header -&gt; Microwidgets<\/strong> and set the new icon in the Social Icons widget.<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>How to add custom social icon from FontAwesome? To add custom social icon from FontAwesome collection to the theme, please go here and pick your desired icon:FontAwesome Social Icons When you pick your icon, please copy its code, you will need it later.In this tutorial, we will add the Digg icon:https:\/\/fontawesome.com\/icons\/digg?style=brandsIts code is f1a6https:\/\/i.imgur.com\/nbDwxc7.jpg When&hellip;<\/p>\n","protected":false},"author":2,"featured_media":4470,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[30,31],"tags":[],"class_list":["post-4095","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dream-theme-support-portal","category-knowledgebase","category-30","category-31","description-off"],"acf":[],"_links":{"self":[{"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/4095","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/comments?post=4095"}],"version-history":[{"count":1,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/4095\/revisions"}],"predecessor-version":[{"id":4119,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/4095\/revisions\/4119"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/media\/4470"}],"wp:attachment":[{"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/media?parent=4095"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/categories?post=4095"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/tags?post=4095"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}