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
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
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