-
AuthorPosts
-
June 20, 2022 at 12:13 pm #1355833
Hello,
I’ve followed a bunch of threads regarding this matter, managed to add the specific fontello icons (Twitch and Discord) to the media library, and then to the Social profiles. They are already added to the socket and the links work but the icons don’t display.
Not sure what I am missing here.Your help would be much appreciated!
Here’s the code I added to Enfold Child functions.php
// TWITCH AND DISCORD – Register new icon as a theme icon
function avia_add_custom_icon($icons) {
$icons[‘icon-twitch’] = array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘0xf1e8’);
$icons[‘icon-discord-logo-black’] = array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘0xe800’);
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-twitch’] = ‘icon-twitch’;
$icons[‘icon-discord-logo-black’] = ‘icon-discord-logo-black’;
return $icons;
}
add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);June 21, 2022 at 3:26 am #1355919Hey nasi,
Thank you for the inquiry.
We may need to access the site in order to check the issue properly. The icon name and character code might have to be adjusted. Please provide the login details in the private field, make sure that the Appearance > Theme File Editor panel is accessible.
Best regards,
IsmaelJune 21, 2022 at 7:53 am #1355946Hi Ismael,
Sure, find attached the credentials.
Thanks!!
June 22, 2022 at 3:51 am #1356076Hi,
Thank you for the info.
We adjusted the character code of the social icons in the functions.php file. The icons are now displaying properly in the front end. Please make sure to purge the cache before testing the page.
Best regards,
IsmaelJune 22, 2022 at 5:10 am #1356089Awesome! Works fine now.
Thanks a lot Ismael. Much appreciated.Cheers,
Nasi
June 22, 2022 at 9:53 am #1356112 -
AuthorPosts
- You must be logged in to reply to this topic.