Hi support team,
i use the included sharing option for my pages. I would like to add another service (Xing). In which document do i have to make the changes? I think the easiest was is to exchange an exisiting service which i don´t need?
Hey dondela!
Thank you for using Enfold.
Add this on functions.php:
/**
* 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['xing'] = array("encode"=>true, "encode_urls"=>false, "pattern" => "http://www.xing.com/sharer.php?u=[permalink]&t=[title]");
return $args;
}
Change the pattern.
Cheers!
Ismael
Hi Ismael,
thank you very much, great support!
There was a error in the xing sharing url i think. It works for me with this url:
/**
* 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[‘xing’] = array(“encode”=>true, “encode_urls”=>false, “pattern” => “https://www.xing.com/social_plugins/share/new?h=1&url=%5Bpermalink%5D&t=%5Btitle%5D”);
return $args;
}