Earlier today, I took my blog offline while I experimented with the new Tweet button from Twitter and though it does look nice, I still prefer Topsy!
Saying that though I did have some fun with updating the code that is used to creat the new button from Twitter, yes I know my coding skills are nothing to boast about but if they work, that’s fine by me
Anyhow this is the code that I grabbed from the Twitter Goodies page for adding the Twitter Button on my blog:
<a href=”http://twitter.com/share” data-count=”horizontal” data-via=”BlazingMinds” data-related=”RemBeatZ:For some awesome music”>Tweet</a><script type=”text/javascript” src=”http://platform.twitter.com/widgets.js”></script>
This will place a Tweet Button like this on my blog. After adding the code I noticed that I had a few problems when the Tweet Button was on the main page of the blog, as it would only tweet the home url and not the posts url. So after plenty of playing around I updated it to.
<a href=”http://twitter.com/share” data-count=”horizontal” data-url=”<?php the_permalink(); ?>” data-text=”<?php the_title(); ?>” data-via=”BlazingMinds” data-related=”RemBeatZ:For some awesome music”>Tweet</a><script type=”text/javascript” src=”http://platform.twitter.com/widgets.js”></script>
Now that seemed to have done the trick, what next?
My next idea was to use the post author in the Tweet Button for the related option, which seemed a bit daunting at first, but then I remembered that I had the coding already which was available in the Author box on the bottom of the blog posts, so the finished code ended up looking like this.
<a href=”http://twitter.com/share” data-count=”horizontal” data-url=”<?php the_permalink(); ?>” data-text=”<?php the_title(); ?>” data-via=”BlazingMinds” data-related=”<?php the_author_meta( ‘twitter’ ); ?>:Author of the post”>Tweet</a><script type=”text/javascript” src=”http://platform.twitter.com/widgets.js”></script>
Replacing the information in the data-related variable with php the_author_meta( ‘twitter’ ); ?>:Author of the post now pulls in the information from the authors bio, where I had added an extra field for the authors twitter name, so now when the Tweet Button is used once the tweet has been posted it will now recommend the author of the post.
So why haven’t I implemented the new button on Blazing Minds?
Well to put it in simple terms, I don’t like it, it’s good to play around with, but as I said earlier I do prefer Topsy, I noticed that the counts were different between the two Tweet Buttons, with Topsy giving a more correct amount of tweets that the Twitter button, also Topsy has that great little extra of adding a “Top” section to the Tweet Button showing how popular your tweet is with influential tweeters
Now before anyone starts commenting and saying, this isn’t working or that isn’t working, don’t! As I mentioned earlier I’m NOT a coder, never having been I was just simply experimenting with the options of the new Twitter Button, so please don’t come asking me if it doesn’t work on your site!
If you enjoyed reading this post, then please remember to post a comment, Subscribe to my RSS feed.
![]()
No related posts.
Tags: adding tweet button, official twitter button, tweet button, tweet button wordpress, twitter tips










Entries (RSS)
Twitter: jsinkeywest
says:
That is weird because I had almost the same exact experience and removed it. I like you use Topsy. Whenever I use anything I only ask myself one ? does this bring people to my site or take them away
Stumbled
Twitter: BlazingMinds
says:
I’m glad I’m not the only one who’s noticed the same thing with the tweet button
Twitter: HealthyOpal
says:
Heya Karen,
I haven’t tried Topsy. The Tweetbutton is the buzz in the twitter community. Yesterday, I finally got around the new button on one of my newer sites, Celebrate Life.
I didn’t grab the code to install it, but I did snap up one of the WordPress Plug-ins that were floating around. I know I should simply add the code, and I will this week. I don’t like having too many Plugins.
HealthyOpal recently posted..Ginger- Amazing health benefits of ginger
Twitter: BlazingMinds
says:
By adding the code for the tweet button instead of using “another” wordpress plugin, you would have more control over it, plus too many plugins play havoc on a site sometimes, specially when it come to updating wordpress itself
Twitter: pc_holics
says:
I’ve learned something new here. Let me try that one and report back.
Ninja Saga recently posted..Sharingan Eye Variations
Twitter: BlazingMinds
says:
Cool, it’ll be interesting to see what you make of it
Karen recently posted..Marketing Your Business With Twitter Via The Aid Of Tweetons
That is interesting that you get more accurate statistics from Topsy rather than from Twitter it’s self. I am trying really hard not to use twitter because I am already easily distracted. But the more and more I go around the net, it looks as if that will be in impossible feet. How do you manage your time with twitter constantly going off?
Twitter: BlazingMinds
says:
When twitter does go off you just take it in your strides and not let it bother you
Karen recently posted..How To Write a Twitter Bio That Gains You More Followers
Twitter: WaynesBNP
says:
I started using the button almost as soon as it was released and I’m loving it. I used TweetMeme before and I think the official button does a much better job at integrating the service. I especially love how it suggests that people follow me after they are done tweeting. That’s really useful to get more followers.
Wayne Howard recently posted..Sunday Motivational 3- 7 Ways To Be Great!
Twitter: BlazingMinds
says:
It is a good promo technique, you can also promote a second twitter, that’s why I added the code to recommend the author of the blog bost
Karen recently posted..Twitter FollowFriday Recommendation Better Late Than Never
Twitter: KathyBlogger
says:
I don’t use any of the Twitter buttons on my blog. I just use the Share This button and another Sharing button from Onlywire. From an visitor’s perspective though, I like that you use the Topsy button. I prefer it over TweetMeme. So if that matters or not, you have my opinion.
Kathy recently posted..The Ultimate Method For Making Money Online
Twitter: BlazingMinds
says:
The “Share This” button is now integrating the new Twitter button, but it still needs some tweaks to add the reply or RT options.
Karen recently posted..Rod Stewart Is Ready To Be A Dad Again With Penny Lancaster!
Twitter: azblogtips
says:
Thanks for great tips and I am using Digg Digg to to this easily
Tinh recently posted..Top 5 Affiliate Networks That Can Boost Your Sales
Twitter: BlazingMinds
says:
Hmmm, had a look at Digg Digg, wasn’t too sure about it, good set up options though
Karen recently posted..Sherlock Will Be Back For A Second Series!
Twitter: DennisEdell
says:
I already use and like Topsy, so I won’t even try. I trust your judgment so you saved me some testing time; much appreciated.
Dennis Edell recently posted..Update 1 – What DEDC is About
Twitter: BlazingMinds
says:
Topsy rules!
Karen recently posted..10 Posts That You May Find Interesting
Twitter: JustKissie
says:
Ah, Twitter Goodies’ page. That’s a goody in itself!
Thanks, Karen.
Twitter: BlazingMinds
says:
It is a wealth of Twitter, erm, goodies
It’s usually one of the first places I check for the latest “official” Twitter widgets etc.
Karen recently posted..How To Write a Twitter Bio That Gains You More Followers
Twitter: noaspa
says:
Hi Karen,
Only just found out about the new twitter buttons yesterday –
was never quite sure why they didn’t do it earlier
Cheers
Will
P.S. Glad to see you’re a George Carlin fan too – what a man
Will recently posted..Noaspa News – 18082010
Twitter: BlazingMinds
says:
Oh yes indeed, I loved George Carlin, has always had me in stitches, specially in the Jay and Silent Bob movies
Twitter: money_whisper
says:
You are not a coder Karen but you are becoming one! Be careful
Twitter: BlazingMinds
says:
Thank you, I will be very careful