Tagged: enfold
-
AuthorPosts
-
May 27, 2018 at 1:27 pm #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!May 29, 2018 at 12:45 pm #963631Hey Cocoa,
I adjusted your code in functions.php file. Please review your website :)
Best regards,
YigitMay 29, 2018 at 6:34 pm #963861Awesome, thanks! Can you explain how can I also add a Trip Advisor icon there?
Regards,
Cocoa
May 29, 2018 at 6:59 pm #963869Hi,
Please refer to this post – https://kriesi.at/documentation/enfold/social-share-buttons/#how-to-add-custom-social-icons-to-enfold-options :)
Regards,
YigitMay 29, 2018 at 7:47 pm #963905Thank 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?
June 1, 2018 at 10:45 am #965176 -
AuthorPosts
- You must be logged in to reply to this topic.