Tagged: icons, social, social media
-
AuthorPosts
-
August 12, 2016 at 11:37 pm #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);
August 15, 2016 at 6:23 am #672512Hi 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,
RikardSeptember 12, 2016 at 5:22 pm #685283I’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.
September 15, 2016 at 3:57 pm #686957Hi,
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,
YigitOctober 17, 2016 at 4:13 pm #700088I 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, 2 months ago by digitos.
October 17, 2016 at 4:20 pm #700100Hey!
@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!
YigitOctober 17, 2016 at 5:29 pm #700147Read below. Thanks!
October 17, 2016 at 6:44 pm #700179Hey!
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,
YigitOctober 17, 2016 at 7:17 pm #700201I solved it!!
thanks…great!October 17, 2016 at 7:18 pm #700203 -
AuthorPosts
- The topic ‘Add social media icons?’ is closed to new replies.