Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1099292

    When using social share buttons on the blog posts, some of them use the post name permalinks as set, while others generate a plain link. This does still link back to the post but I want the generated link to be consistent across all social share buttons. Can you help?

    #1099804

    Hey Zoe_Georgina,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #1100150

    Many thanks

    #1100698

    Hi,

    Thank you for using Enfold.

    As far as I see only twitter is using this “shortlink”.

    In functions.php of your child theme (or parent theme) add:

    
    function my_social_share_link_arguments( array $args )
    {
    	$args['twitter'] = array( "encode"=>true, "encode_urls"=>false, "pattern" => "https://twitter.com/share?text=[title]&url=[permalink]" );
    	
    	return $args;
    }
    
    add_filter( 'avia_social_share_link_arguments', 'my_social_share_link_arguments', 10, 1 );
    

    If you encounter others let us know please.

    Best regards,
    Günter

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.