SHARE
TWEET

Add new social icon to WPExplorer WordPress theme

wpexplorer Feb 11th, 2013 37 Never
  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');
RAW Paste Data
Top