
-
AuthorPosts
-
May 19, 2016 at 12:09 am #634828
Hi,
I don’t manage to add a custom icon for social profiles.
1) I have imported the icon without problem. I can use it in a custom separator for instance and in import/export section it shows “Font: tripadvisor”.
2) I have added the following lines at the bottom of the functions.php file:
// Register new icon as a theme icon
function avia_add_custom_icon($icons) {
$icons[‘tripadvisoricon’] = array( ‘font’ =>’tripadvisor’, ‘icon’ => ‘0ue800’);
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[‘Trip Advisor’] = ‘tripadvisoricon’;
return $icons;
}
add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);But in Social Profiles i can’t find my “Tripadvisor” icon in the list when i click on the + sign.
Any help greatly appreciated (i lost 3 hours checking the forums without finding the answer)
Thanks in advance
GuillaumeMay 19, 2016 at 2:33 pm #635207Hey guillaume14,
If you are not using a child theme, please make sure to add the code right below following line in functions.php file
if(isset($avia_config['use_child_theme_functions_only'])) return;
If that does not help, please create a temporary admin login and post it here privately.
Best regards,
YigitMay 19, 2016 at 3:51 pm #635270Hi Yigit,
Thanks for your help: i now have the ability to add my custom icon in the social profiles tab :)
But the icon doesnt appear in frontend next to my Facebook icon: do i need to add some CSS for the icon to be visible ?
Thanks in advance
GuillaumeMay 20, 2016 at 5:59 am #635702Hi,
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,
RikardMay 20, 2016 at 10:44 am #635817Hi,
Here you go for the admin account.
Thanks a lot
GuillaumeMay 20, 2016 at 12:52 pm #635861Hi,
You had a small typo in your code, i fixed it, please review your website now.
Best regards,
YigitMay 20, 2016 at 3:33 pm #635929Ooops sorry
Thanks a lot
RegardsGuillaume
May 20, 2016 at 3:37 pm #635932Hey!
You are welcome!
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)Best regards,
Yigit -
AuthorPosts
- The topic ‘Don't manage to add custom icon for social profiles’ is closed to new replies.