Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #362922

    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?

    #363344

    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

    #363517

    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;
    }

    • This reply was modified 10 years ago by dondela.
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘social sharing add another service’ is closed to new replies.