Grab My Button Widget Tutorial: One Click Installation

by Mr. I · 13 comments

in Promotion, Tips, Tutorials

Happy Smile“Grab My Button” is a good tool for promotion! Readers grab your custom image to show support and you get additional traffic. In the tutorial: Grab My Button, Promote My Blog , we learned to create a scroll box to hold the html code for your blog image and link. In this tutorial, we will take the widget a step further and add a small icon/button that will let blogspot users import your widget with just one click!

First, you need the code for your button. Here’s code structure:

<center><img src="http://farm4.static.flickr.com/3358/3279966696_6f63996198.jpg" alt="" />
<textarea cols="20" rows="3"><a href="http://BloggingWithSuccess.net"><img src="http://farm4.static.flickr.com/3358/3279966696_6f63996198.jpg" alt="BWS tips button" width="125" height="125" /></a></textarea></center>

Just replace the image source and link url to make it your own. Be sure to put your value into the ‘Alt =’ instead of ‘bws tips button’ and the correct width/height if yours is different!

Now, you have the code. Next step is to convert the code so that Blogger layout does not mess it up by thinking it’s html for the Blogger Editor. Go to Blogger Code Converter and paste your button code. Copy output to a text file  or wordprocessor to use later.

Now, copy following code and paste it to a text file (or anything that lets you edit text):

<form method="POST" action="http://www.blogger.com/add-widget"><input type="hidden" name="widget.title" value="-widget-title-"/><input type="hidden" name="widget.content" value="-converted-code-"/><input type="hidden" name="widget.template" value="<data:content/>" /><input type="hidden" name="infoUrl" value="-your-blog-url-"/><input type="hidden" name="logoUrl" value="-if-you-have-logo-its-url"/><input type="submit" name="go" value="Grab Now"/></form> 

You will need to make following changes:

  • Replace -widget-title- with the title you want to give to the widget. e.g. Recommended Reading etc. It can be left blank.
  • Replace  -converted-code- with the code you got after conversion from Blogger Code Converter. It is required.
  • Replace -your-blog-url- with your homepage or any other page that tells what widget is about. It can be left blank.
  • Replace -logo-url- with any image address less than 100×100 you want to display on “Import Widget” page. It can be left blank.

Now if it’s not there already,  place your button image & scroll box on your blog. Then add the form code below it, in the same gadget/widget.

The above code displays a button with text “Grab Now” on it. To display the blogger button icon we use,  first, find following code (it’s the second-to-last line):

<input type="submit" name="go" value="Grab Now"/>

This code displays a button with text Grab Now. To use image, replace it with following code:

<input type="image" src="http://www.blogger.com/img/add/add2blogger_sm_b.gif" alt="Add to Blogger"/>

You can see the live example in our sidebar. (consider yourself invited to test the widget and add our button to your sidebar!  :twisted:  )

Mr. I
Hi, I am a 17 year old Blogger from India. I am very passionate about blogging and also co-founder of Blogging With Success. Read my other posts. I manage Twitter account of Blogging With Success. You can see I love guest posting!

{ 13 comments… read them below or add one }

Archerfish June 5, 2009 at 9:58 AM

good very useful

Reply

SBA August 4, 2009 at 4:40 PM

Hi, I looked but could not find your button. Are you having problems getting it to work? Let us know…

Reply

michelle August 4, 2009 at 1:36 PM

thank you for sharing this

Reply

SBA August 9, 2009 at 3:58 AM

You’re welcome. I took a look at your button (actually your Entrecard image) — looks good. The lettering could be clearer (caused by reducing larger lettering to 125 x 125), but your friends will recognize your face!. If you have software you can create the 12photo and then add appropriate sized text over the image. You forgot to change the Alt= value to your own keywords. It currently says “BWS tips button”. Why not create a gravatar image and favicon to brand your blog?

Reply

michelle August 10, 2009 at 8:35 AM

thank you for pointing it out. i’m sorry but i am really new at this. but can you please recheck it if i did the alt= right this time? i also visited the fav icon and now trying the gravatar.thanks xoxo

Reply

SBA August 10, 2009 at 5:08 PM

Yes. Now wasn’t the gravatar easy? The quotes in your scrollbox are fine now, but I need to know how the error with currly quotes happened — did you copy the html code from this page?

The alt value is fine. I did a google search with your words in quotes and found the button reference right away. This is what shows on the results page:
MrsMartinez’s Raves and Rants!
<a href="http://mrsmartinezravesandrants.blogspot.com" ><img alt="MrsMartinez Raves and Rants" width="125" ...

Reply

michelle August 10, 2009 at 6:53 PM

hmmm i am sorry but what do you mean about error in the the curly quotes? do you mean to say that until now there is an error appearing when you post the entrecard/avatar on other site? you are right. I just copied the html code from here. hoping to hear a respond from you soon. thank you so much

Reply

SBA August 10, 2009 at 7:31 PM

No, my mixup! Your quotes are and have been fine — I was thinking of WhackyMummy’s problem on a related post. That’s what I get for replying to comments from the dashboard instead of directly on the post! Makes the comment thread a bit ‘whacky’. Sorry.

Reply

michelle August 11, 2009 at 9:03 AM

all is clear thanks!

Reply

Kim August 22, 2009 at 2:31 AM

I tried what you suggested…& was “somewhat” successful!
If you get a chance, I’d sure appreciate your imput!
Thanks & God bless!
Kim

Reply

SBA August 23, 2009 at 10:06 PM

Kim, you must know I love puzzles! Like Suduko, you give me few hints to figure out your ’somewhat’ success. To add to the mystery you left this comment on the wrong post? (this one is about the widget not the scroll box).

No problem, I took a look and found a few things.
1- When readers copy your html from the scrollbox to their blogs they get a bad link. Your html now reads:
… href=”http://www.blogger.com/%20http://sacredheartofjesushomeschoolacademy.weebly.com/%20″ …

So just remove the extraneous http stuff and make it
… href=”http://sacredheartofjesushomeschoolacademy.weebly.com/” …
2- You resized your image to 125 x 125 making it a bit squishy. The original is not square, but 175 x 132. That size is okay for most blogs so use the original. If you want it more like 150 wide, then use the online resizer tool http://www.resizr.com/ . 150 x 113 is okay.

Reply

jess Bowman January 14, 2010 at 11:25 PM

Can you tell me what I”m doing wrong????

<textarea cols=”20″ rows=”3″><a href=”http://thisandthataboutthebowmans.blogspot.com/”><img src=”http://i326.photobucket.com/albums/k424/rckclmbrjess/BLOGBUTTON2.jpg” alt=”Remembering Stephen button” width=”125″ height=”125″ /></a></textarea></center> “/>” type=hidden name=widget.template>

Reply

SBA January 14, 2010 at 11:56 PM

I’d love to help, but you need to give me more to go on. Where is your site so I can see what the page source for the code and view results. Seems to have a lot of missing code, based on the version in your comment!

Reply

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post:

Next post: