Tagged: whatsapp
-
AuthorPosts
-
December 8, 2017 at 4:14 am #886337
I am having a problem adding the Whatapp icon to show in the social profile.
I’ve followed the instructions in multiple threads:https://kriesi.at/support/topic/adding-whatsapp-button-on-social-share-buttons/#post-573570
https://kriesi.at/support/topic/add-whatsapp-icon/#post-532969
https://kriesi.at/support/topic/add-whatsapp-icon/
https://kriesi.at/support/topic/insert-code-above-in-social-links/Why are there so many variations on the functions.php code for adding an icon? It makes what should be a simple process very frustrating.
I was able to successfully upload the Fontello Whatsapp font using the Iconfont Manager and have tested to make sure it is visible in the font list using an Icon Box in the layout Builder.
Here’s the code I added to functions.php in a child theme:
/* add support for whatsapp icon */ // Register new icon as a theme icon function avia_add_custom_icon($icons) { $icons['Whatsapp'] = array( 'font' =>'whatsapp', '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['Icon Label'] = 'Whatsapp'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
Despite trying several option outlined in the above posts, I am unable to see the Whatsapp icon appear in the Social Profile dropdown list.
Would someone please review the code and make corrections in this post so that other can learn? Thanks.
- This topic was modified 6 years, 11 months ago by richbernstein1.
December 8, 2017 at 11:21 am #886424Hey richbernstein1,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaDecember 9, 2017 at 2:37 am #886720This reply has been marked as private.December 9, 2017 at 4:12 pm #886876Hi richbernstein1,
I am not seeing the login link? Can you please post it as well?
Best regards,
VictoriaDecember 10, 2017 at 3:29 am #887026This reply has been marked as private.December 11, 2017 at 4:42 pm #887500Hi richbernstein1,
You need to have at least php 5.6.3, to get the code properly working.
Best regards,
VictoriaDecember 12, 2017 at 1:05 am #887632PHP has been upgraded to 7.0 (Beta) and the icon is still not visible within the social profile drop down list.
I have also tried PHP 5.6 (5.6.3 was not available and the next step was 7.0) with no luck either.
Still need your help,
ThanksDecember 12, 2017 at 11:57 am #887862December 13, 2017 at 10:43 pm #888588Thank you.
I still have a problem of the icon displaying in the Footer. Currently, there is a space for the icon but it is invisible… Is there CSS to correctly display the icon? Thanks.
December 14, 2017 at 2:51 pm #888906Hi richbernstein1,
You need to download the icon from here
http://fontello.com/
Add it your website and then, write the correct font in the code above.
You have the threads in the original post, there are answers there.Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.