-
AuthorPosts
-
July 14, 2021 at 6:14 pm #1310142
Hi, I am having an issue adding custom icons to social profiles
I have followed the article. I see the icon registered in social profiles, However, when I select it, It does not display the icon I uploaded via fontello, it displays the incorrect icon. The icon in question is a pencil, it is supposed to be a tik tok logo.
July 15, 2021 at 8:56 am #1310207Hi dvalansi,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
( to be sure that we have enough time to debug ). - Click ” Submit “.
- You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.
When your issue is fixed, you can always remove the plugin!
If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.Best regards,
NikkoJuly 15, 2021 at 9:13 pm #1310327Hi, it was done.
July 16, 2021 at 8:50 am #1310356Hi dvalansi,
Thanks for giving us admin access.
It seems to be fixed already, see screenshot in private content.
Please try to clear your browser cache.Also, I would suggest replacing the code you have with (so it doesn’t display as Icon Label but Tiktok):
// Register new icon as a theme icon function avia_add_custom_icon($icons) { $icons['tiktok'] = array( 'font' =>'fontello', 'icon' => 'ue800'); 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['Tiktok'] = 'tiktok'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
Best regards,
NikkoJuly 16, 2021 at 6:15 pm #1310424Ive added the new code in, but cleared all cache and tried on a private browser and still shows a pencil icon, very strange as I see your screenshot and it looks good
July 17, 2021 at 3:08 am #1310442Hi dvalansi,
Can you try another browser and check? or if you have Google Chrome, please try to use Incognito mode and check.
I tried different browsers on my end and device and it’s consistently showing TikTok icon.Best regards,
NikkoSeptember 23, 2021 at 9:21 pm #1322075This reply has been marked as private.September 24, 2021 at 12:28 am #1322086Hi Jeepkid99,
I tried to login with the credentials with you gave however I’m getting:
Error: The password you entered for the username is incorrect.
Best regards,
NikkoSeptember 24, 2021 at 5:53 pm #1322227This reply has been marked as private.September 26, 2021 at 5:53 pm #1322363Hi Jeepkid99,
Thanks, I was able to login.
Please use a child theme, you can download and find instructions on how to use it here: https://kriesi.at/documentation/enfold/child-theme/
You’ll need it for two reasons, first is that the code above does not work when added on functions.php on the parent theme but it does on the child theme (I just tested to verify this one) and the second one is that when there’s an update, everything modified in the parent theme will be removed, so you’ll need to add them again, but with a child theme, the modification is preserved.Best regards,
NikkoOctober 1, 2021 at 7:28 pm #1323190This fixed it. Thank you Nikko! I’ve been using Enfold for years and never knew about adding the child theme. Appreciate the response and help.
October 2, 2021 at 2:24 am #1323204Hi Jeepkid99,
We’re glad that we could help :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘Adding custom icons to social profiles’ is closed to new replies.