Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)

Add new social icon to WPExplorer WordPress theme

By: wpexplorer on Feb 11th, 2013  |  syntax: None  |  size: 0.50 KB  |  hits: 37  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. // Use this function to add more social icons to your theme (can be added to functions.php)
  2. // Using "instagram' as an example
  3. // Then just add your new icon in the images/social folder
  4. function add_social_icons($social_icons){
  5.        
  6.         //new icons
  7.         $extra_social_icons = array(
  8.                 'Instagram'
  9.         );
  10.        
  11.         //combine icons
  12.         $social_icons = array_merge($extra_social_icons, $social_icons);
  13.        
  14.         //return new array with added icons
  15.         return $social_icons;
  16.        
  17. }
  18. add_filter('wpex_get_social', 'add_social_icons');