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.
Heike
Hey DEmobilezeitgeist,
Try editing /wp-content/themes/enfold/includes/helper-social-media.php
on line 149, look for
'gplus' => array("encode"=>true, "encode_urls"=>false, "pattern" => "https://plus.google.com/share?url=[permalink]" , 'label' => __("Share on Google+",'avia_framework')),
and edit the name, url, & hover text (Share on Google+)
My test shows that the icon and color also changes
Best regards,
Mike
Hi Mike,
Thank you! Worked like charm. As always your support is awesome!
Cheers,
Heike