Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #572541
    #573570

    Hey ambia01!

    Thank you for using Enfold.

    We modified the code in the functions.php file a bit. Please check it here: http://eventsquared.london/uncategorized/test/

    // 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;
    }

    Cheers!
    Ismael

    #581355

    Hi. It works for me. But it appears the icon of a pencil and not a phone. How to fix it? Thanks

    #581991

    Hi,

    Could you provide us with a link to the site in question so that we can take a closer look please?

    Thanks,
    Rikard

    #582691

    See the link. Thanks

    #584794

    Hey!

    add this code to Quick CSS field:

    li.av-share-link.av-social-link-whatsapp a:before {
    content: '\1F4DE';
    }
    

    Regards,
    Andy

    #585400

    Thank´s

    #585419

    Hey!

    glad we could help. Let us know in a new ticket if you have some more questions related to the theme. We are happy to assist you.

    Best regards,
    Andy

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Adding WhatsApp Button on Social Share Buttons’ is closed to new replies.