February 8, 2012

Infomasi Social Media dan Tip Trik Online

How To : Add Twitter’s Tweet Button to WordPress, Blogger, Tumblr


Advertisements

Twitter has released the official Tweet Button some time ago, this is a good news for the bloggers. It is very easy to use, the javascript code is very compatible with many blogging platforms, like WordPress, Blogger, and Tumblr.

Now, how to add the Tweet Button to your blog?
Go to Twitter’s Tweet button setup page, set your preferences button.
There are three styles available:

vertical tweet button How To : Add Twitters Tweet Button to Wordpress, Blogger, Tumblr

vertical

horizontal tweet button How To : Add Twitters Tweet Button to Wordpress, Blogger, Tumblr

horizontal

none tweet button How To : Add Twitters Tweet Button to Wordpress, Blogger, Tumblr

none

To set the button style, change the ‘data-count‘ parameter to ‘vertical’, ‘horizontal’, or ‘none’. Look at the default code:
<a href=”http://twitter.com/share” data-count=”horizontal” data-via=”socialblogr”>Tweet</a><script type=”text/javascript” src=”http://platform.twitter.com/widgets.js”></script>

Now, how to add Tweet Button to WordPress blog?
Copy the following code and paste into your single or index page.

<a href=”http://twitter.com/share” data-text=”<?php the_title(); ?>” data-url=”<?php the_permalink() ?>” data-count=”vertical” data-via=”socialblogr“>Tweet</a><script type=”text/javascript” src=”http://platform.twitter.com/widgets.js”></script>

If you’re using WordPress.com, just enable the tweet button from your admin page.

Add Tweet Button to the Blogger template.

Copy of the Following code:

&lt;a href=&#39;http://twitter.com/share&#39; class=&#39;twitter-share-button&#39; data-text=&#39;<data:post.title/>&#39; data-url=&#39;<data:post.url/>&#39; data-count=&#39;vertical&#39; data-via=&#39;socialblogr&#39;&gt;Tweet&lt;/a&gt;<script src=’http://platform.twitter.com/widgets.js’ type=’text/javascript’/>

Add Tweet Button to Tumblr blog.

Copy of the Following code between {block:Posts} and {/block:Posts} :

<a href=”http://twitter.com/share” data-text=”{Title}” data-url=”{Permalink}” data-count=”vertical” data-via=”socialblogr“>Tweet</a><script type=”text/javascript” src=”http://platform.twitter.com/widgets.js”></script>

NOTE : Change the Twitter username (red-printed) with yours.

Related posts:

  1. Twitter’s Tweet Button (Officially from Twitter)
  2. How To : Add Topsy Retweet Button to Blogger
  3. How To : Embed a Tweet to WordPress Blog Post
  4. How To : Add Facebook Like Button to Blogger Post
  5. How To : Add Follow Me on Twitter Button to Website/Blog
Ngonoo - Technology & Social Media Updates
Post comment as twitter logo facebook logo
Sort: Newest | Oldest

Trackbacks

  1. [...] to get down and dirty with the code. Luckily there’s detailed instructions on how to do it here, so you’ll know what to do each step of the [...]