-
AuthorPosts
-
March 23, 2026 at 1:06 pm #1496256
Manel
GuestHi team, i follow the code explainded to create a new social icon.
function avia_add_custom_icon($icons) {
$icons['spotify'] = array( 'font' =>'fontello', 'icon' => 'ue907');
return $icons;
}
add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);function avia_add_custom_social_icon($icons) {
$icons['spotify'] = 'spotify';
return $icons;
}
add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
But in 7.13 version i can’t modify this. The icon doesn’t appear.
March 24, 2026 at 3:42 pm #1496299Hey,
Thank you for the inquiry.
To add a custom social icon in the current version, you need to make sure the icon is registered through the iconfont manager. If you are using a custom fontello font, you need to upload it via Enfold > Import/Export first so the theme recognizes the font family and unicode character.
After uploading the icon pack, update your snippet like this:
function avia_add_custom_icon( $icons ) { $icons['spotify'] = array( 'font' => 'fontello', 'icon' => 'ue907' ); return $icons; } add_filter( 'avf_default_icons', 'avia_add_custom_icon', 10, 1 ); function avia_add_custom_social_icon( $icons ) { $icons['spotify'] = 'spotify'; return $icons; } add_filter( 'avf_social_icons_options', 'avia_add_custom_social_icon', 10, 1 );A couple of things to check:
1. Make sure the code is placed in your child theme’s functions.php, not the parent theme.
2. Confirm the font family name in the uploaded pack is exactly “fontello” and the unicode value matches what is in the font.
3. Go to Enfold > Performance and disable file compression temporarily, then clear your cache and test.If the icon still does not appear after confirming those steps, please share a screenshot of your Enfold > Import/Export tab showing the uploaded font pack, and also let us know where exactly the icon is not showing up (social icons in theme options, or inside the page builder). You can post login details in the private field if needed.
You can also refer to the icon documentation here for more context:
— https://kriesi.at/documentation/enfold/icon/
Let us know the result.
Best regards,
IsmaelMarch 24, 2026 at 3:54 pm #1496301Thanks.
I can fix it.
The problem was where I was placing the code.
I always put it in the child theme, in functions.php, but in this case, I put it in another file called “my_functions.php”. It was a JS file after reading functions.php. When I wrote the code in functions.php, the problem was solved.
I suppose it’s due to the reading order.
Thank you very much.
We’ve closed the issue ;)
March 24, 2026 at 4:55 pm #1496302Hi,
Glad that Ismael could help, if you have further questions please open a new thread and we will try to help. Thanks for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Icon Spotify’ is closed to new replies.
