Tagged: social media, twitter
Hey Guys,
I’ve just recognized, that the Socialmedia-Sharing-Button for Twitter is always using the default name of the post “?p=12345” in the URI, the other social-buttons use the correct site-URI. You are also having this issue on your Enfold-Demo. Is this intended?
regards, Lars
Hi Vabel!
Thank you for using Enfold.
Yes, the shortlink is being use for the twitter share. If you want to use the actual permalink of the post, you can edit includes > helper-social-media.php. Find this code on line 174:
$replace['shortlink'] = !isset($this->post_data['shortlink']) ? wp_get_shortlink() : $this->post_data['shortlink'];
Replace it with this:
$replace['shortlink'] = !isset($this->post_data['shortlink']) ? get_permalink() : $this->post_data['permalink'];
Best regards,
Ismael
great, thx!