Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #672123

    I have tried the code found here: http://kriesi.at/documentation/enfold/custom-social-icons/

    The code I used is below… It isn’t working. I’ve checked and double checked everything…it simply isn’t working. I’m guessing this code broke with a recent update?

    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    	$icons['gplus_alt']	 = array( 'font' =>'font-awesome', 'icon' => 'uf0d5');
    	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['Google Plus Alt'] = 'gplus_alt';
    	return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
    #672512

    Hi Kahil,

    Please send us a temporary admin login so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Best regards,
    Rikard

    #685283

    I’m trying add the Houzz icon to the social media icons but I’m having what I think is the same issue:

    Fatal error: Cannot redeclare avia_add_custom_social_icon().

    I’ve made a temporary admin login for you in the Private Content.

    #686957

    Hi,

    That is because you are trying to add the same functions to functions.php file twice. It seems like you have already figured it out though?

    Best regards,
    Yigit

    #700088

    I have same trouble. I tried all tutorial of this forum.

    I use this code that i inserted in the end of functions.php file

    function avia_add_custom_icon($icons) {
    $icons[‘gruppo_chiuso’]= array(‘font’ =>’fontello’, ‘icon’ => ‘0xe801’);
    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[‘Gruppo chiuso’] = ‘gruppo_chiuso’;
    return $icons;
    }
    add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);`

    Can you help me? thanks!

    • This reply was modified 8 years, 1 month ago by digitos.
    #700100

    Hey!


    @digitos
    Please start a new thread and attach temporary admin logins in private content field so we can look into it. If you post them here, they will be visible to creator of this thread as well.

    Cheers!
    Yigit

    #700147

    Read below. Thanks!

    #700179

    Hey!

    Please edit one of your pages and add icon element then edit icon element and hover on your custom icon and check the charcode by hovering on it. That is the charcode you should add in

    'icon' => '0xe801'

    Regards,
    Yigit

    #700201

    I solved it!!
    thanks…great!

    #700203

    Hey!

    You are welcome, let us know if you have any other questions or issues :)

    Best regards,
    Yigit

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Add social media icons?’ is closed to new replies.