How To Add Button Code & Code Box To Your Blog


Above: Here's an example of a button with a code box below it.

If you want to watch a video of this process click here. This is a more intermediate skill level.

Create a Button for your blog using our tutorial here.

You will need to create a Photobucket account if you don't already have one.

Upload your new button (.jpg or .png) to Photobucket and save.

When you hover your cursor over the button a box should appear. Click on the blue link that says Link Options. This will give you a list of all the possible codes you can grab. The main one you will use is the Direct Link. Make sure this is checked. Now when you go to your image you can click in the box on Direct Link, copy this code. It will look something like this:

http://i892.photobucket.com/albums/ac123/yourblogname/a6c27771.jpg

Open a Text Editing page (do not use Word as this creates extra text in your code) to copy and paste your code into. Follow the directions below:

A. To create the actual button link code for your blog you will need to take this code and paste it into this code where it is red. Where it is blue, copy and paste the link of where you want the button to go to:

<a href="http://www.yourblognamehere.com" target="_blank"><img src="http://i892.photobucket.com/albums/ac123/beautifymyblog/a6c27771.jpg"/></a>

B. To create the box below the button with grab code in it, paste your code and link into this code:

<textarea readonly rows="10" cols="20">
<a href="http://www.yourblogname.com" target="_blank"><img src="http://i892.photobucket.com/albums/ac123/beautifymyblog/a6c27771.jpg"/></a>
</textarea>

Now copy and paste all the code from Letter A. into the HTML gadget of your blog's sidebar. Click Save. Then check to see if your button has appeared. If it appears you may proceed to adding the code box.
Copy and paste code from Letter B. below the Letter A. code. Click Save. Your code box will appear beneath the button in your sidebar.


Above: This is what your Sidebar Code area will look like.
Title it something funny, like - Grab My Button!

Tip: If you want your code box to be larger or smaller just change the numbers in the code to the size you prefer...go up (or down) in increments to check how it looks. Always remember to Click Save.

If you find glitches in these instructions please let us know and we will do our best to improve them. Good luck and happy blogging!

34 click here to comment:

  1. Thanks Sarah, That is really great information and maybe sometime you could tell us techie challenged how to make a PNG file instead of a JPG, That would be great! Hugs, Marilou

    ReplyDelete
  2. PS Sarah, You are rapidly becoming my new BFF instead of someone named Sarah! Lol Thanks again

    ReplyDelete
  3. OMG! You are too funny!! HEE HEE!
    You would have a PNG if you created it as such (like in the button tutorial). If you have a photo you want to make the code for, you can do that too...it would probably be a JPG.
    It doesn't really matter in this case.
    You can use this coding method for any image you want HTML (direct link) to link with.
    Hope this helps!

    ReplyDelete
  4. Worked like a charm! Thanks a ton!

    ReplyDelete
  5. Yea! I did it. I'm so excited! Thank you, thank you, thank you!!!

    ReplyDelete
  6. It is late tonight and I getting ready to nod off but that id it for me, No I didn't try the PNG yet but will tomorrow and if it works then that is a done deal you Will be my BFF, I'll let you know tomorrow but I'm sure you made the cut!! Thanks BFF to be!

    ReplyDelete
  7. Thank you so much! I was trying to do this way to late last night and couldnt get it...woke up this morning and made my button, Done! Yay. Thank you!

    ReplyDelete
  8. Finally!!! I have a button, this tutorial worked perfectly, and I was able to follow directions.

    blessings,
    jilly

    ReplyDelete
  9. thank you so much for doing this tutorial! at last I have a buttton :)

    ReplyDelete
  10. What a fabulous tutorial. The best I've found - and I did it!!! Thank you from the bottom of my heart!!! Shalom ya'll!

    ReplyDelete
  11. Thank you, thank you, thank you! I've been trying to do this FOREVER and this is by far the easiest and best tutorial I've found, worked like a charm! Thanks a bunch!

    ReplyDelete
  12. SOOOO Helpful! I wish I had found you weeks ago! Thank you for sharing your knowlegde and not charging us for it!! ;P

    ReplyDelete
  13. I really can't even thank you enough for this super valuable tutorial. I just finished making my button, and I honestly don't think I could have done it without you! I could just hug you and cry!!! Thanks so much!!!!!!!!

    ReplyDelete
  14. It worked! It worked!!! I wrote my first official piece of code because of you gals and just blogged about it. Hooray!!! Thank you ladies.

    ReplyDelete
  15. Thank you so much I have been trying to figure out how to do this all week and it was sooooo easy.

    ReplyDelete
  16. Great information,
    can anyone tell me if you could use it on Facebook as well

    ReplyDelete
  17. THANK YOU so much for posting this...you totally helped me with something I should have done a LONG time ago!! :)

    ReplyDelete
  18. This is the ONLY tutorial that worked and made perfect sense. Thank you so much. My only question is that the code does not come up under the button just an other button comes up. what should I do?

    ReplyDelete
  19. Finally, the perfect directions to get me a button on my blog. Thanks so much.

    ReplyDelete
  20. Thank you sooooo much! I love you for this!! ^^

    ReplyDelete
  21. Thank you so much for this tutorial! I now have a button for my blog!
    Jo-Anna

    ReplyDelete
  22. Thank you! Just the tutorial I was looking for.

    ReplyDelete
  23. Worked like a charm! Thanks!
    Michael
    bluevelvetchair.blogspot.com

    ReplyDelete
  24. Woot! Woot! Worked like a charm...even for us "older folks" that are computer challenged! Yeah! Thanks ever so much!
    Kathy
    www.shawkl.com

    ReplyDelete
  25. Thank you so much for your tutorial! It was very helpful and super clear!

    ReplyDelete
  26. Thanks! It worked! Great tutorial!

    ReplyDelete
  27. omg YAY! it worked!

    thank you so much i was searching all over trying to figure out how to do this! i'd seen and admired them on so many blogs! Thank you!! <3

    ReplyDelete
  28. These were great, thank you so much! :)

    ReplyDelete
  29. Thank you! I have tried making my own button before following other tutorials but I was never successful. I am so excited to finally have made one.

    I'll definitely be bookmarking your site!

    Much thanks, Elisabeth

    ReplyDelete
  30. Thank you so much! I knew making a button had to be possible without hiring a "graphics god". Thank you for posting this!!!

    ReplyDelete
  31. Wow!!! YOur tutorial is simple and AWESOME!!!
    Thanks a million and my blog button is beautiful :)

    ReplyDelete
  32. Thanks for the tutorial it was very easy to follow, but now that picnik is closed down I used picmonkey :)

    ReplyDelete

We love reading your comments on a daily basis! We would love to reply to you all, but sometimes it gets overwhelming, so please forgive us if we don't get to you. You can always email us and we'll reply for sure!

© 2010/2011/2012 The Blog Guidebook

Little Girls Dresses from Shabby Apple