Install a Retweet button on Tumblr

Below an example how to install a RTButton on Tumblr in 2 steps.

The RTbutton  RTButton has been designed by MicroPlaza.

You need to define this little piece of javascript before <div class=”post”>, it will configure the button to have the correct title and retweets count. You can also adapt it to change the leading part (ie: mp_leading = “RT @tigressse”) and if you want to keep the microplaza attribution (mp_attribution = true)

<script type="text/javascript">

  var t = document.createElement('p');

  t.innerHTML = "{Title}";

  mp_title = t.textContent;

  mp_permalink = "{Permalink}";

  mp_mode = "vertical";

  mp_leading = "RT @tigressse";

  mp_attribution = true;

</script>

Then you need to add this second piece of javascript where you want the button to appear (note that you can change the div style). A nice place to put the button is just before the title of the post, you add :

<div style="float: right;">

<script type="text/javascript" src="http://microplaza.com/r/button.js">

</script>

</div>

Thanks @tlg for his help.

UPDATES

Since the Microplaza RTbutton no longer works, I find it useful to write a new post, better read this one Install a Retweet button on Tumblr (bis).

Comments (View)

blog comments powered by Disqus
  1. fikifikiwiki reblogged this from tigressse
  2. dasistdasende reblogged this from tigressse
  3. tigressse posted this