-
Search Results
-
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:
I need it to be displayed correctly. Can you help me?
Thanks!
DavidTopic: FB sharing button
Hi guys,
some time ago you gave me the following code to insert “via @…” for Twitter sharing:
/*TWITTER SHARING CUSTOMIZATION*/ add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1); function avia_add_social_share_link_arguments($args) {$args['twitter'] = array("encode"=>true, "encode_urls"=>false, "pattern" => "https://twitter.com/share?text=[title]&url=[shortlink]&via=Anton_Malafeev"); return $args;}Is that possible to add the same “via @…” to the Facebook share button ? I’d like to make people sharing via one of my FB pages.
Cheers,
Hi
I was using two functions to share on telegram in Social Share Buttons
they worked also in 4.7.1, but after upgrading to 4.7.2 the Telegram button disappeared.Functions:
// 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[‘telegram’] = array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8b7’);
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[‘telegram’] = array(“encode”=>true, “encode_urls”=>false, “pattern” => “https://telegram.me/share/url?text=&url=[permalink]”, ‘label’ => __(“Share on Telegram”,’avia_framework’));
return $args;
}Can you help me to restore the Telegram button please?
Thank you
ManuHello There,
I successfully added in the past a whatsapp share button as suggested in this forum with the following function in functin.phpadd_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" => "whatsapp://send?[title]&url=[permalink]", 'label' => __("Condividi su Whatsapp",'avia_framework')); return $args;}After the last WP update to 5.2. suddenly the whatsapp links stopped working. The outout is empty.
Is this caused by wordpress or Enfold needs an update too? Do you have any idea how to solve this?
ThanksHello!
The Whatsapp button in the social share blog posts stopped working.
It now opens a new page instead of sharing to whatsapp.My functions.php from the child theme is:
<?php /* * Add your own functions here. You can also copy some of the theme functions into this file. * WordPress will use those functions instead of the original functions then. */ // 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" => "whatsapp://send?text=[title]&url=[permalink]", 'label' => __("Auf Whatsapp teilen",'avia_framework')); return $args; }Regards
Chris
Hi,
This is an update for this thread:https://kriesi.at/support/topic/add-whatsapp-icon/#post-532969
In there there is a solution for adding the WhatsApp icon to the header social follow items and to the social sharing icons.
2 things didn’t work for me.
1. The link whatsapp://send?text=[title]-[permalink] doesn’t work on desktop. When I changed it to https://api.whatsapp.com/send?text=[title]-[permalink] it works on mobile and desktop also.
2. When you add the CSS markup to the Quick CSS section the styling is not being handled. When you add !important to both CSS styles it does work.// Register new icon as a theme icon 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" => "https://api.whatsapp.com/send?text=[title]-[permalink]" ) ); return array_merge($new_array, $args); }3. If you don’t have a child theme functions.php, install this plugin
and add the code from step 2 into the functions.php added by the plugin.
4. Add this to your Quick CSS to change the whatsapp-button color./* Whatsapp button color */ #top #wrap_all .av-social-link-whatsapp:hover a { color: #fff !important; background-color: #3bb528 !important; }Hope this helps.
Topic: WhatsApp in Social Profiles
Hi,
I’ve been through various updates but none seem to work for me, I have uploaded the fontella zip file and added the following code to functionality plugin but WhatsApp doesnt appear in the list on Enfold –> Social Profiles. Can someone point me in the right direction
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); }many thanks
Topic: Add Whatsapp Icon to header
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!Topic: Whatsapp button in share box
Hi,
In an earlier post I read about adding the whatsapp button to your share box.
I implemented this code in my functions.php file:
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" => "whatsapp://send?text=[title]&url=[permalink]", 'label' => __("Deel via Whatsapp",'avia_framework')); return $args; }but now if I click the whatsapp share button on my mobile it opens up the whatsapp core website.
I read about adding this to your link:
data-action="share/whatsapp/share"How can I add this function to my link so it will work nicely?
Hi,
I want to replace the G+ social share button under the blogposts with a Xing button. I already added WhatsApp in my child themes functions.php with
// Register new icon as a theme icon
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);
return $args;
}How can I change G+ to Xing?
Thanks.
HeikeHello,
i already read this http://kriesi.at/documentation/enfold/custom-social-icons/
And it works very well.Now i need for this new icon a new function not simply a link.
I want add a snippet
if (function_exists('example')) { example(); }What i must paste in functions.php ???
Is this the right way?:add_filter('avia_social_share_link_arguments', 'avia_social_share_link_newfunction', 10, 1); if (function_exists('example')) { example(); }This is what i already have there:
// Register new icon as a theme icon function avia_add_custom_icon($icons) { $icons['Ändere Schriftgröße'] = array( 'font' =>'fontello', 'icon' => 'uf088'); 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['Change Fontsize'] = 'Ändere Schriftgröße'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
