Hi,
I selected to have my social media button displayed after a blog but when people are sharing on Twitter, my twitter handle doesn’t show on what they are sharing. How do I add my twitter handle on what they are sharing on twitter?
Hi webblove,
Could you provide us with a link to the site in question so that we can take a closer look please?
Thanks,
Rikard
Hi!
Thank you for the link. Please add this in the functions.php file:
// modify social share args
add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1);
function avia_add_social_share_link_arguments($args)
{
$args['twitter']['pattern'] = 'https://twitter.com/share?text=[title]%20@something&url=[shortlink]';
return $args;
}
Change @something to your actual twitter handle.
Regards,
Ismael
Hi,
the other thing that is not done when the link is shared on twitter is the URL not formated to have http://website.com/blogtitle.
It gives the wordpress default format even when I changed it in settings to be website.com/blogtitle (permalink). How do I fix that?
Hey!
Please refer to my post here – https://kriesi.at/support/topic/social-share-buttons-3/#post-504078
Cheers!
Yigit