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

    How do I change it so it uses the long-form of the URL? So this:

    http://DOMAINHERE.com/2013/02/26/blog-post-title/

    Instead of:

    http://DOMAINHERE.com/?p=34

    Facebook and Google+ share buttons use the long form. I’d like Twitter to behave similarly. Right now the tweet looks like this when I press the share button:

    Blog Post Title http://DOMAINHERE.com/?p=34

    Regards,

    Matt Refghi

    • This topic was modified 9 years, 8 months ago by champlainconted. Reason: added tweet contents
    #418168

    Hi champlainconted!

    Twitter only allows a certain amount of character per tweet so it makes sense to use small permalinks like that. If you switch to pretty permalinks then the URL might get truncated and not work.

    If you still want to change it then open up /enfold/includes/helper-social-media.php and change line 148 from this.

    'twitter' 	=> array("encode"=>true, "encode_urls"=>false, "pattern" => "https://twitter.com/share?text=[title]&url=[shortlink]"),
    

    To this.

    'twitter' 	=> array("encode"=>true, "encode_urls"=>false, "pattern" => "https://twitter.com/share?text=[title]&url=[permalink]"),
    

    Cheers!
    Elliott

    #424981

    Hey, I didn’t try this, but am satisfied with the response/service. You can close the ticket, I’ll refer to it later when I get back around to this task.

    Thanks,

    Matt

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Share to Twitter button uses the ?p=# format for the URL, not long form’ is closed to new replies.