Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #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 :)

    #1265931

    Hey 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,
    Ismael

    #1265933

    Hi Ismael

    Thank you for your advice –

    Can you please tell me where do I put this code?

    Thanks

    Akiko

    #1266051

    Hi 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,
    Victoria

    #1266165

    Hi 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

    #1266201

    Hi,

    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,
    Ismael

    #1266240

    Thank 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
    Akiko

    PS – 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.
    #1266747

    anyone?

    #1266814

    Hi,

    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,
    Ismael

    #1266860

    Thank you Ismael
    I have hired a developer in an attemot to return my website to normal.

    Akiko

    • This reply was modified 3 years, 11 months ago by akikosite.
    #1266981

    My website is back to normal now!

    I learned that I’m not a programmer so I will never touch these things again :)

    Akiko

    #1267021

    Hi,

    Did you need additional help with this topic or shall we close?

    Best regards,
    Jordan Shannon

    #1267027

    Hi Jordan,

    Please close it

    Thanks!

    Akiko

    #1267297

    Hi,

    If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Apple Music / Spotify / Amazon – social icons in the menu bar?’ is closed to new replies.