-
AuthorPosts
-
December 7, 2020 at 4:24 am #1265372
Hello
I guess the first thing I should mention is I’m not a programmer :)
I have looked a support tickets regarding adding social icons to my menu bar. I followed the procedure of going
to the fontello website were I choose the icons and downloaded the zips. I uploaded the zip file files via the
Enfold – import/export page. I can see the new fonts –I then opened a new page and using the advanced layout I checked to see if my icons were there. – I see one font ( amazon) added as – fontello and it seems the apple and Spotify icons are in the – entypo-fontello
Now my next step is where I run into trouble
Can someone please explain clearly what steps I must take to get these icons in my menu bar?
Thanks kindly!
BTW – A requested feature in the future would be more music social icons – Spotify – Apple Music – Deezer and many others – Thanks :)
December 9, 2020 at 8:08 am #1265931Hey Akiko,
Thank you for the inquiry.
We can use the avf_social_icons_options and avf_default_icons filters in the functions.php file to add a new social icon option in the existing list and associate a custom font icon to it. Usage example can be found in the following threads.
// https://kriesi.at/support/topic/enfold-add-multiple-social-profile-icons/
// https://kriesi.at/support/topic/custom-social-media-icon-in-the-socket/This an example of the snippet.
// WIEBO - Register new icon as a theme icon function avia_add_custom_icon($icons) { $icons['weibo'] = array( 'font' =>'fontawesomeregular', 'icon' => 'ue92b'); $icons['qq'] = array( 'font' =>'fontawesomeregular', 'icon' => 'ue92b'); $icons['wechat'] = array( 'font' =>'fontawesomeregular', 'icon' => 'ue92b'); 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['Weibo'] = 'weibo'; $icons['QQ'] = 'qq'; $icons['WeChat'] = 'wechat'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
Add the snippet in the functions.php file and define the new icon after this line in the avf_social_icons_options filter.
$icons['WeChat'] = 'wechat';
To associate a font icon to the new social icon, just follow the pattern in the avf_default_icons filter. This code defines the font icon that we have to use for the wechat social icon.
$icons['wechat'] = array( 'font' =>'fontawesomeregular', 'icon' => 'ue92b');
Best regards,
IsmaelDecember 9, 2020 at 8:30 am #1265933Hi Ismael
Thank you for your advice –
Can you please tell me where do I put this code?
Thanks
Akiko
December 9, 2020 at 6:25 pm #1266051Hi akikosite,
This code should be added in the child theme in the functions.php file.
If you need further assistance please let us know.
Best regards,
VictoriaDecember 10, 2020 at 2:56 am #1266165Hi Victoria
Thank you for your suggestion –
Question – I looked at the functions.php page but I can not find anything that says child theme?
Could you please explain in a little more detail – ( I’m not a coder and this is all very new to me)
Thanks
Akiko
December 10, 2020 at 7:26 am #1266201Hi,
Thank you for the update.
Looks like you have not installed a child theme yet. If you want to install one, please create a site backup or a restore point in case anything goes wrong, then check the following documentation.
// https://kriesi.at/documentation/enfold/child-theme/
Please post the WP and FTP details in the private field so that we could add the modifications.
Best regards,
IsmaelDecember 10, 2020 at 10:15 am #1266240Thank you everyone for your help.
As I said before, I’m not a coder this is all new to me and its not working out.
I followed the instructions regarding installing a child’s theme – it broke my website ( can’t get past the index page).
I have tried everything to get my site working again – restore back up, reinstall the theme but nothing works.
I really did not expect so many issues just to add a few social icon links from my website. To be honest I give up.
If you can advice how to get my site back online that would be all I ask.
Thanks
AkikoPS – I switched themes to 2020 and the site displays but when I put it back to enfold the index page freezes.
- This reply was modified 3 years, 11 months ago by akikosite.
December 12, 2020 at 10:35 am #1266747anyone?
December 13, 2020 at 12:15 am #1266814Hi,
Thank you for the update.
Yes, sorry for the confusion. Did you create a backup or a restore point as suggested above? This is very important because you may lose the current theme configuration if you fail to properly activate the child theme.
Please restore the site using the backup or the restore point, then post the WP and FTP login details in the private field so that we could add the social icons.
Best regards,
IsmaelDecember 13, 2020 at 5:18 am #1266860December 14, 2020 at 3:24 am #1266981My website is back to normal now!
I learned that I’m not a programmer so I will never touch these things again :)
Akiko
December 14, 2020 at 5:32 am #1267021Hi,
Did you need additional help with this topic or shall we close?
Best regards,
Jordan ShannonDecember 14, 2020 at 5:57 am #1267027Hi Jordan,
Please close it
Thanks!
Akiko
December 15, 2020 at 1:24 am #1267297Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Apple Music / Spotify / Amazon – social icons in the menu bar?’ is closed to new replies.