Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #962718

    Hello guys! I love your theme!

    I’m trying to add a WhatsApp icon to my website’s header, I have followed these steps: https://kriesi.at/support/topic/insert-code-above-in-social-links/

    I’ve already imported the fontello.zip files and added this to the Child Theme’s function.php file:

    function avia_add_custom_icon($icons) {
    $icons[‘whatsapp’] = array( ‘font’ =>’whatsapp-font-icon’, ‘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[‘Whatsapp’] = ‘whatsapp’;
    return $icons;
    }
    add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);

    //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)
    {
    $new_array = array(
    ‘whatsapp’ => array(
    “encode”=>true, “encode_urls”=>false, “pattern” => “whatsapp://send?text=[title]-[permalink]”
    )
    );

    return array_merge($new_array, $args);
    }

    It is not woking . Can you please help me? I’m providing you an admin access on private content section.
    Also, I will need to add a Trip Advisor icon later.
    Thank you!

    #963631

    Hey Cocoa,

    I adjusted your code in functions.php file. Please review your website :)

    Best regards,
    Yigit

    #963861

    Awesome, thanks! Can you explain how can I also add a Trip Advisor icon there?

    Regards,

    Cocoa

    #963869
    #963905

    Thank you, but I am not able to upload a second zip file with the Trip Advidor icon at the Import/Export section, because I already uploaded the WhatsApp icon before. Any ideas?

    #965176

    Hi,

    You can upload another font zip as long as the font name is different. In the fontello.com site, look for the “font name” field beside the “Download webfont” button.

    Best regards,
    Ismael

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