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

    I need it to be displayed correctly. Can you help me?
    Thanks!
    David

    #1191873

    Sorry, the screenshot:
    https://prnt.sc/re7vzh

    #1191876

    Hey,

    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!
    Yigit

    #1191881

    Hi,
    Yes wordpress and Enfold are updated to the latest versions.
    Website:
    https://www.merlinita27.com/
    Blog:
    https://www.merlinita27.com/blog/

    #1191902

    Hi,

    Could you please post temporary admin logins here privately as well so we can check backend?

    Best regards,
    Yigit

    #1191922
    This reply has been marked as private.
    #1192214

    Hi david_peris,

    Best regards,
    Victoria

    #1192235
    This reply has been marked as private.
    #1192262

    Hi,

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

    #1192331

    Hi,
    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/res07y

    David

    #1192594

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

    #1193462

    Hi,
    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!
    David

    #1193476

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

    #1193479

    Perfect! Thanks! :-)
    David

    #1193529

    Hi,

    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

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Share whatsapp icon dont show’ is closed to new replies.