I've got some tweet buttons on my site and they are using the page name in the text field of the tweet. This works on my secondary individual blog posts, where the title of the page changes to that of the blog post. But on the front page, the tweet buttons for each article will include the home page url, not the individual post title.
Is there a parameter to enter in data-text that will display the blog post title, not the main page's title and url? I've got a facebook like button which does perfectly fine, but the twitter isn't working.
I'm having the same issue here? Has anyone solved this?? I'd so appreciate some help!
If you're using a php based blog and editing your php code, try adding the data-text attribute and setting <?php the_title(); ?> as the value for the data-text attribute. I've also added the permalink to the blog post in the Tweet by including the permalink call as the attribute for data-url. Your theme may be slightly different int he way it handles the url and so, this code may or may not work for you.
Any solutions to this yet for non php based blogs?
This is the exact functionality I've been looking for - for blog posts - however I'm trying to use my own custom Tweet button, as opposed to the twitter-share-button. Is there a simple solution here? The link works perfectly otherwise.