Content feed Comments Feed

Add ‘Tweet This’ Link to your Blogger

Posted by Wonderful-Tricks
ADVERTISEMENTS

Twitter can be a great source of traffic for your blog.

Now if you want to make it easy for your site visitors to share links of your blog articles on Twitter, follow the instructions below - you don’t need any plug-ins and the post URLs are automatically shortened in the tweet via bit.ly (a good alternative to tinyurl that also provides live traffic statistics).



Go to your Blog Layout -> Edit HTML and click the box that says "Expand widget templates".

Take a backup of your Blogger template. Now search for the class "post-footer" in the Blogger XML template and copy-paste the following snippet somewhere near that class.

<b:if cond='data:blog.pageType == &quot;item&quot;'>
<script charset='utf-8' src='http://bit.ly/javascript-api.js?version=latest&amp;login=tweettrackjs&amp;apiKey=R_7e9987b2fd13d7e4e881f9cbb168f523' type='text/javascript'/>
<script charset='utf-8' src='http://s.bit.ly/TweetAndTrack.js?v=1.01' type='text/javascript'/>
<a expr:onclick='&quot;return TweetAndTrack.open(this, \&quot;&quot; + data:post.url + &quot;\&quot;);&quot;' href='#'>
<span style='display:none;'>Reading: <data:post.title/></span>Post Link to Twitter</a>
</b:if>

That’s it. If you want to replace the “Tweet This” link with a graphic of the Twitter bird, add an IMG tag instead of text

Your Ad Here

0 comments

Post a Comment

Blogumulus by Wonderful-Tricks

Followers