How to add a custom social icon

Please try below code in your child theme functions.php


function add_custom_icons( $icons ) {
$icons['Ning'] = 'Ning';
return $icons;
}

add_filter( 'presscore_get_social_icons_data', 'add_custom_icons' ,30 , 1 );

Then, please insert the following rules into Dashboard – Theme Options – General – Custom CSS:

.soc-ico > a.ning {
border: none !important;
width: 27px;
height: 27px;
background-size: 100%;
background-repeat: no-repeat;
}

.soc-ico .ning .icon {
display: none;
}

.soc-ico a.ning {
background-image: url(http://example.com/images/example.png) !important;
}
.soc-ico a.ning:hover {
background-image: url(http://example.com/images/example-hover.png) !important;
background-repeat: no-repeat !important;
background-size: cover !important;
}
.soc-ico a.ning:after, .soc-ico a.ning:before {
display : none !important;
}

For Armada Ttry editing presscore_get_social_icons_data() …/dt-armada/inc/theme-settings.php around line ~84. Add required social service into the array. For example:

‘vk’ => __(‘VK’, LANGUAGE_ZONE),
‘foursquare’ => __(‘Foursquare’, LANGUAGE_ZONE),
‘ning’ => __(‘Ning’, LANGUAGE_ZONE),

Social profile link can be added in the usual way via Theme Options -> Top bar.
Social link shortcode: [dt_social_icon target_blank=”true” icon=”ning” link=”http://ning.com” /]

For making the appropriate changes in the “Contact info” widget, it is necessary to edit …/dt-the7/inc/widgets/contact-info.php

8