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?
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
Many thanks
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