Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #913635

    I have implement a new icon “Android”. It appears! Yes. But how can i add an other icon?
    Here is my code, which i have added in the /wp-content/themes/enfold/functions.php

    I have added the whatsapp-font-icon within the enfold inport/export -> Iconfont Manager.

    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    	$icons['android']	 = array( 'font' =>'entypo-fontello', 'icon' => 'u+F17B');
    	$icons['whatsapp']	 = array( 'font' =>'whatsapp-font-icon', 'icon' => 'ue800');
    	return $icons;
    }
    add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
    
    // Add new icon as an option for social icons
    function avia_add_custom_social_icon($icons) {
    	$icons['android'] = 'Android';
    	$icons['whatsapp'] = 'WhatsApp';
    	return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
    #913666

    Hey Christian,
    This is the correct format, I take it that it is not working for you?

    Best regards,
    Mike

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.