Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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.

    #886424

    Hey 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,
    Victoria

    #886720
    This reply has been marked as private.
    #886876

    Hi richbernstein1,

    I am not seeing the login link? Can you please post it as well?

    Best regards,
    Victoria

    #887026
    This reply has been marked as private.
    #887500

    Hi richbernstein1,

    You need to have at least php 5.6.3, to get the code properly working.

    Best regards,
    Victoria

    #887632

    PHP 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,
    Thanks

    #887862

    Hi richbernstein1,

    The code is working, you put “Icon Label” and you it at the end of the icon list :) If you put whatsapp there, you’ll see.
    Image 2017-12-12 at 11.56.47.png
    Image 2017-12-12 at 11.57.48.png

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #888588

    Thank 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.

    #888906

    Hi 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

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.