Customising Button Title

It is now possible to specify the text that is tweeted when users click on the Retweet button.

The system currently works by using the page’s title as the tweet text. For example, a page with the title “TweetMeme Blog » Retweet Button Explained” would result in the following tweet:

RT @talkTweetMeme TweetMeme Blog » Retweet Button Explained http://retwt.me/33K

It is now possible to remove parts of this text. Note: the text you set to use must be a subset of the page title. So you would be allowed to use the text “Retweet Button Explained” for the above example, but if you were to enter “Retweet Button Explained on TweeteMeme”, the system would fall back to using the whole title of the page.

Below is instructions on how to implement this feature on the various buttons TweetMeme offers.

WordPress Plugin

This feature is available in the TweetMeme Wordpress Plugin, versions 1.6 upwards. It will automatically configure itself to use the title of the blog post which the button is pointing to.

Web Button

If you have added the TweetMeme button yourself, then you can set the title using this method. Adding this tag to the HEAD section (between the <head> and </head> tags) of a page will override it’s title:

<meta name="tweetmeme-title" content="Retweet Button Explained" />

This will make any buttons that point to this page use this title for their tweet:

RT @talkTweetMeme Retweet Button Explained http://retwt.me/33K

WordPress custom install

If you have installed the button into your WordPress theme yourself, you can use the following code in your header.php template and all blog posts will use the post title as the text of the tweet:

<meta name="tweetmeme-title" content="<?php wp_title(''); ?>" />

And Remember…

There is one major caveat to this system. Our systems require the tweetmeme-title to be a strict subset of the page title. i.e. The tweetmeme-title must be derived directly from your original page title – if it is not, it will be ignored. This is to ensure that the tweet the button sends can always be predicted by the user to be relevant to the page they are reading.

1 Star2 Stars3 Stars4 Stars5 Stars (31 votes, average: 2.61 out of 5)