Tagged: social share, Xing
Hi,
I use the following code snippet to add Xing for Social sharing
but it is the last right Share-Item behind the Share by Mail item.
I wish to have this Icon as first Share-Item on the left side.
//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-share.com/app/user?op=share;sc_p=xing-share;url=[title]&url=[permalink]", 'label' => __("Teile auf Xing",'avia_framework'));
return $args;
}
Hi 1webster!
Thank you for using Enfold.
Please replace the code with this:
//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)
{
$xing = array('xing' => array("encode"=>true, "encode_urls"=>false, "pattern" => "https://www.xing-share.com/app/user?op=share;sc_p=xing-share;url=[title]&url=[permalink]", 'label' => __("Teile auf Xing",'avia_framework')));
$args = array_merge($xing, $args);
return $args;
}
Best regards,
Ismael
Thanks Isamael,
I’ve made this meanwhile a litte bit different but this looks better ;)
Kind regards