-
AuthorPosts
-
February 10, 2021 at 2:42 pm #1279474
I am having trouble importing my custom icon into the social icons. It imports to the theme fine but does not appear in the social icons menu.
// Register new icon as a theme icon function avia_add_custom_icon($icons) { $icons['realself'] = array( 'font' =>'realself', 'icon' => 'E801'); 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['Icon Label'] = 'realself'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);I have looked through other threads and no solutions are working so there must be something I’m missing. I have tried icon codes E801, UE801, 0xUE801
February 10, 2021 at 3:31 pm #1279503Hey undervised,
I do not see the code added to the functions.php. Did you remove it? And in this case, it’s better to have a child theme installed and activated.
Here are the docs for you:
Best regards,
VictoriaFebruary 10, 2021 at 3:41 pm #1279515I’ve added it back in now sorry I was trying another way, thank you for your suggestion. I am worried about putting a child theme in as I dont want to lose all the current settings.
It should still work on the main theme though right? It’s still not working for me now I’ve added it in, there’s no option in the social profiles dropdown.
February 13, 2021 at 5:35 pm #1280275Hi undervised,
It depends on where you add it and it will be overwritten with the next theme update if you keep it in the parent theme. I moved the code for you, please add the link and test the icon.
Best regards,
VictoriaFebruary 15, 2021 at 10:59 am #1280485Hi I have added the icon and linked it however it is showing a blank space where it should appear.
February 16, 2021 at 4:50 pm #1281413Hi undervised,
Did you get the correct icon code? How did you get it?
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.
