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

    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

    #318510

    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

    #386941

    great, thx!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Social Media Icon Twitter’ is closed to new replies.