-
AuthorPosts
-
March 10, 2020 at 3:13 pm #1191871
Hi,
My share button on whatsapp stopped working.
I have solved it by adding this code in functions.php:// Register new icon as a theme icon add_filter('avf_default_icons','avia_add_custom_icon', 10, 1); function avia_add_custom_icon($icons) { $icons['whatsapp'] = array( 'font' =>'whatsapp-font-icon', 'icon' => 'ue800'); return $icons; } //Adjust icons add_filter('avia_filter_social_icons', 'avia_filter_social_icons_mod', 10, 1); function avia_filter_social_icons_mod($icons) { $icons['Whatsapp'] = 'whatsapp'; return $icons; } //Add items on the social share section add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1); function avia_add_social_share_link_arguments($args) { $args['whatsapp'] = array("encode"=>true, "encode_urls"=>false, "pattern" => "https://whatsapp.com/share?text=[title]&url=[permalink]", 'label' => __("Share on Whatsapp",'avia_framework')); return $args; }
and css:
.social_bookmarks_whatsapp a::before, .av-social-link-whatsapp a::before { font-family: 'entypo-fontello'; content: ''; }
But the icon does not show correctly. Attachment screenshot:
I need it to be displayed correctly. Can you help me?
Thanks!
DavidMarch 10, 2020 at 3:15 pm #1191873Sorry, the screenshot:
https://prnt.sc/re7vzhMarch 10, 2020 at 3:18 pm #1191876Hey,
Could you please post a link of your website?
Please make sure that you are using the latest version of WordPress and Enfold which is currently 4.7.3 – https://kriesi.at/documentation/enfold/theme-update/.
Cheers!
YigitMarch 10, 2020 at 3:33 pm #1191881Hi,
Yes wordpress and Enfold are updated to the latest versions.
Website:
https://www.merlinita27.com/
Blog:
https://www.merlinita27.com/blog/March 10, 2020 at 4:37 pm #1191902Hi,
Could you please post temporary admin logins here privately as well so we can check backend?
Best regards,
YigitMarch 10, 2020 at 5:09 pm #1191922This reply has been marked as private.March 11, 2020 at 12:12 pm #1192214Hi david_peris,
Best regards,
VictoriaMarch 11, 2020 at 12:39 pm #1192235This reply has been marked as private.March 11, 2020 at 1:28 pm #1192262Hi,
I edited your code in Functions.php file and changed it to following
// Register new icon as a theme icon add_filter('avf_default_icons','avia_add_custom_icon', 10, 1); function avia_add_custom_icon($icons) { $icons['whatsapp_icon'] = array( 'font' =>'whatsapp-font-icon', 'icon' => 'ue800'); return $icons; } //Adjust icons add_filter('avia_filter_social_icons', 'avia_filter_social_icons_mod', 10, 1); function avia_filter_social_icons_mod($icons) { $icons['Whatsapp'] = 'whatsapp_icon'; return $icons; }
Please review your website :)
Best regards,
YigitMarch 11, 2020 at 3:52 pm #1192331Hi,
Thanks, now it shows perfect!
But when sharing the post, the linked url no longer appears…
Attached screenshot of what happens when I share: https://prnt.sc/res07yDavid
March 12, 2020 at 1:47 pm #1192594Hi David,
I have updated the function you have for Whatsapp sharing as well
//Add items on the social share section add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1); function avia_add_social_share_link_arguments($args) { $args['whatsapp_icon'] = array("encode"=>true, "encode_urls"=>false, "pattern" => "https://whatsapp.com/share?text=[title]&url=[permalink]", 'label' => __("Compartir en Whatsapp",'avia_framework')); return $args; }
Please flush browser cache and review your website :)
Best regards,
YigitMarch 16, 2020 at 12:47 pm #1193462Hi,
Now it works perfectly!
But another “whatsapp” is still showing that doesn’t work. I need to delete it, how do I do it?
Attachment screenshot: https://prnt.sc/rh3o57
Thanks!
DavidMarch 16, 2020 at 1:37 pm #1193476Hi David,
I edited functions.php file of your child theme and commented out the code I posted in my previous reply. Please review your website :)
Best regards,
YigitMarch 16, 2020 at 1:45 pm #1193479Perfect! Thanks! :-)
DavidMarch 16, 2020 at 4:50 pm #1193529Hi,
You are welcome! :)
For your information, you can take a look at Enfold documentation here – https://kriesi.at/documentation/enfold/
If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)
Best regards,
Yigit -
AuthorPosts
- The topic ‘Share whatsapp icon dont show’ is closed to new replies.