Add more social links with icon for Unite

Hello

I would like to add some social links with Icon next to the existing ones (Facebook, LinkedIn…), like GitHub, XIng. How can I do this?

Best Regards,
Hans

Hi Hans,

I hope you are well today and thank you for your question.

You can add more social icons like GitHub by using the solution posted in the following reply.

https://colorlibsupport.com/t/enlarge-body-text/#post-33742

Regarding adding XIng social icon please see the following issue created for it.

Best Regards,
Movin

Hi Movin

thanks a lot for your answer.

I installed child-theme70 and went to Appearance->editor and tried to change the function custom_unite_social by adding the line containing “github”.
Unfortunately the github Icon does not appear anywhere.
How do I Need to change custom_unite_social? Do I Need to change something else?

best regards,
Hans

//Display social links function custom_unite_social(){ $output = '<div id="social" class="social">'; $output .= unite_social_item(of_get_option('social_github'), 'Github', 'github'); $output .= unite_social_item(of_get_option('social_facebook'), 'Facebook', 'facebook'); $output .= unite_social_item(of_get_option('social_twitter'), 'Twitter', 'twitter'); $output .= unite_social_item(of_get_option('social_google'), 'Google Plus', 'google-plus'); $output .= unite_social_item(of_get_option('social_youtube'), 'YouTube', 'youtube'); $output .= unite_social_item(of_get_option('social_linkedin'), 'LinkedIn', 'linkedin'); $output .= unite_social_item(of_get_option('social_pinterest'), 'Pinterest', 'pinterest'); $output .= unite_social_item(of_get_option('social_feed'), 'Feed', 'rss'); $output .= unite_social_item(of_get_option('social_tumblr'), 'Tumblr', 'tumblr'); $output .= unite_social_item(of_get_option('social_flickr'), 'Flickr', 'flickr'); $output .= unite_social_item(of_get_option('social_instagram'), 'Instagram', 'instagram'); $output .= unite_social_item(of_get_option('social_dribbble'), 'Dribbble', 'dribbble'); $output .= unite_social_item(of_get_option('social_skype'), 'Skype', 'skype'); $output .= unite_social_item(of_get_option('social_vimeo'), 'Vimeo', 'vimeo-square'); $output .= '</div>'; echo $output; }

Hi Hans,

Just changed the above shared custom_unite_social function as following and change the Github in it with your Github URL.

//Display social links
function custom_unite_social(){
  $output = '<div id="social" class="social">';
  $output .= '<a class="social-profile github" href="https://github.com/FreeWPTP" target="_blank" title="Github">';
  $output .= '<span class="social_icon fa fa-github"></span>';
  $output .= '</a>';
  $output .= unite_social_item(of_get_option('social_facebook'), 'Facebook', 'facebook');
  $output .= unite_social_item(of_get_option('social_twitter'), 'Twitter', 'twitter');
  $output .= unite_social_item(of_get_option('social_google'), 'Google Plus', 'google-plus');
  $output .= unite_social_item(of_get_option('social_youtube'), 'YouTube', 'youtube');
  $output .= unite_social_item(of_get_option('social_linkedin'), 'LinkedIn', 'linkedin');
  $output .= unite_social_item(of_get_option('social_pinterest'), 'Pinterest', 'pinterest');
  $output .= unite_social_item(of_get_option('social_feed'), 'Feed', 'rss');
  $output .= unite_social_item(of_get_option('social_tumblr'), 'Tumblr', 'tumblr');
  $output .= unite_social_item(of_get_option('social_flickr'), 'Flickr', 'flickr');
  $output .= unite_social_item(of_get_option('social_instagram'), 'Instagram', 'instagram');
  $output .= unite_social_item(of_get_option('social_dribbble'), 'Dribbble', 'dribbble');
  $output .= unite_social_item(of_get_option('social_skype'), 'Skype', 'skype');
  $output .= unite_social_item(of_get_option('social_vimeo'), 'Vimeo', 'vimeo-square');
  $output .= '</div>';
  echo $output;
}

Best Regards,
Movin

Great thanks a lot, Movin! :slight_smile:

You are most welcome here :slight_smile: