Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #734407

    hi,

    I’m having some trouble adding a yelp icon my theme. I’m following this thread http://kriesi.at/documentation/enfold/custom-social-icons/

    I added this code using the snippet widget to the functions.php but I get an error. I’m not using a child theme.

    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    	$icons['yelp']	 = array( 'font' =>'fontello', 'icon' => 'uf1e9');
    	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['yelp = 'yelp';
    	return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
    
    #734423

    Hey mcraig77!

    Can you please post FTP and WP admin logins here privately?

    Cheers!
    Yigit

    #734480

    wordpress login below, no ftp access at the moment. Let me know if just that will work!

    #734545

    Hey!

    Your code had a type, please try again

    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    	$icons['yelp']	 = array( 'font' =>'fontello', 'icon' => 'uf1e9');
    	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['yelp'] = 'yelp';
    	return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);

    Let us know if that works out

    Best regards,
    Basilis

    #742077

    Thanks!

    #742218

    Hi,

    Glad we could help!
    Please take a moment to review our theme and show your support https://themeforest.net/downloads
    To know more about enfold features please check – http://kriesi.at/documentation/enfold/
    Thank you for using Enfold :)

    Best regards,
    Vinay

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Adding A yelp icon’ is closed to new replies.