Primp My Blog: How to Add Social Media Buttons to Your Sidebar

by Kira @ Her New Leaf on January 31, 2012

Now that your blog is getting beautiful, you’re going to want to share it! Adding buttons to your blog requires a tiny bit of know-how, but it can make a big impact for your readers.

I’d also like to take a moment to share that you can now follow Her New Leaf on Facebook! I plan to use the page to communicate with my readers, find out what you want to read more about, and even provide some exclusive content for Facebook followers only!

The buttons that I use in my own sidebar are courtesy of Isa Maria of The Academy. I had been searching high and low for a cute set of icons that included a button to link to my Pinterest, and when I discovered Isa Maria’s adorable icons based on the Pantone Color of the Year, I knew they were perfect and couldn’t wait to share. Please click over to her blog and subscribe to her newsletter, they are full of wonderful tips and advice for your blog or business!

I wanted to share this fantastic resource with you all, so I decided to put it together with a teeny, tiny html primer. Don’t be scared! Way, way back when I was a wee geek of twelve, I taught myself enough html to create my own pages on Angelfire and Geocities. Remember those? So if I could do it then, you can do it now!

Rather than just giving you code to copy and paste, I figured I’d break it down a bit and teach you so that you can add a bit of html to your blog design repertoire. But if you just want to copy and paste and get it over with, I promise not to hold it against you. ; ) You can scroll to the bottom of this post to find out how.

Edit: Several of you have reported having trouble locating the URL for the buttons – that’s because you need to create it yourself by uploading the images to your own image hosting service. WordPress users can use the built-in Media Library, Blogger users can use an external service such as Photobucket. This is where you’ll find the image URL.

From your WordPress dashboard, go to Appearance > Widgets, and click and drag the “Text” Widget from the box on the left to your sidebar box on the right. It will open up a blank box.

From your Blogger dashboard, go to Design, then click “Add a Gadget.” Select “HTML/Javascript” from the menu. It will open up a blank box.

First, we’re going to learn how to create a link. You can use this basic html tag in your blog posts, email, anywhere you can use html.

<a href="URL of link">Text to Link</a>

Your link will look something like this:

My Facebook!

You can also edit this tag slightly so that your link will open in a new tab or window. This is helpful since you don’t want your readers to leave your blog to look at your pages.

<a href="URL of link" target="_blank">Text to Link</a>

But we want to show our cute buttons, so you’ll need this tag to place an image:

<img src="URL of image">

Finally, we combine the two tags to add a link to the image:

<a href="URL of link" target="_blank"><img src="URL of image"></a>

This is the same code, with my links as examples:

 <a href="http://www.facebook.com/pages/Her-New-Leaf-Blog/
329109590455030" target="_blank"><img src="http://hernewleaf.
files.wordpress.com/2012/01/facebook.png"></a>

Continue adding links and images until you have added all of the buttons you want! Make sure you test all your links because one incorrect character is all you need to send your readers to the wrong place!

Enjoying the Primp My Blog series so far? Consider adding my button to your blog!

{ 67 comments… read them below or add one }

hemborgwife January 31, 2012 at 7:14 am

You have sufficiently boggled my mind with this! Maybe one day I will be brave enough to try this out!

Reply

Amy Bishop January 31, 2012 at 9:00 am

Thanks for this post! I used this code to start a new “featured on” section of my toolbar similar to yours. What an easy tutorial. Thanks!

Reply

Kira @ hernewleaf January 31, 2012 at 9:29 am

Great! So you can see how once you know a tiny bit of html, you can use it for so many different things!

Reply

Joanne P January 31, 2012 at 9:04 am

Thanks so much. At first I’m like huh and then I figured it out. You made it so easy. Awesome.

Reply

Kira @ hernewleaf January 31, 2012 at 9:30 am

I’m glad you figured it out, Joanne, you can always feel free to contact me with questions!

Reply

Shay January 31, 2012 at 10:37 am

OH THANK YOU! I have seriously been scouring the internet for the past 3 weeks looking for clear, helpful instructions on how to add buttons and coming up with nothing. You are wonderful!

Thanks so much!
xoxox Shay

Reply

Kira @ hernewleaf January 31, 2012 at 6:56 pm

So glad that I could help you, Shay! That’s exactly what I’m trying to do with this series – put “tech speak” into clear, plain English to teach bloggers how to DIY their blogs! I hope you’ll keep reading!

Reply

claresworriesandwisdom February 1, 2012 at 5:47 am

So cool!! Thank you for the tips :)

Reply

Allex Ramirez February 1, 2012 at 8:46 pm

Took me a while to figure out, and with the help of my roommate I finally got some icons on my page! Thanks for the directions and cute icons :)

Reply

Kira @ hernewleaf February 1, 2012 at 9:16 pm

Glad it worked out for you, Allex! Make sure you head over to Isa Maria’s post (http://blog.noisettemarketing.com/2011/12/pantone-social-media-icons/) and leave her some love as well!

Reply

jodie February 8, 2012 at 4:49 pm

i may be (*read “am”) really dense about these things… so maybe i’m missing something really obvious here. i’ve messed around a little (a very little) with the html on my blog so i feel semi-comfortable with it, but what i’m not seeing here is the code to get the images plugged in… i downloaded them from the other blog (it was a zip file and all that’s included are images that are pngs)…. how in the world do i plug that into the html code to make the links work?? i’m lost. jydardeau at yahoo dot com please help! :)

Reply

Kira @ hernewleaf February 9, 2012 at 11:24 am

You’ll need to upload them to a file hosting site first – WordPress has the built-in Media Library, you can also use Photo Bucket or something similar. : )

Reply

SheilaG February 9, 2012 at 8:06 am

Wow, I’ve been trying to figure out how to do this for weeks! Is there a way to customize the colors to match my theme? Or if I wanted to make my own buttons, how do I get the logos on there?

Reply

Kira @ hernewleaf February 9, 2012 at 11:27 am

Sheila, You will need to use some image editing software (like Photoshop) to do this – there are also free online options like Picnik. Isa Maria, the designer I linked above, also offers her services for custom requests, you can contact her for pricing!

Reply

farmerboyk May 4, 2012 at 10:21 am

Or you could use for example paint.NET and change the hue/saturation to make the color change and match your blog :)

Reply

Kira @ Her New Leaf May 4, 2012 at 10:28 am

I wouldn’t feel comfortable editing these buttons (or encouraging others to do so) since they were created by a designer who generously shared them and who also sells her work. Editing them would be taking business from her and, in my opinion, that’s not fair. :-/

Reply

sara February 10, 2012 at 8:59 am

Does Blogger have a built in media library? I need the html code for the image…

Reply

Kira @ hernewleaf February 10, 2012 at 9:31 am

Sara, I’m not familiar with Blogger but there are plenty of free image hosting sites out there: Photo Bucket and Picasa, just to name a few. You’ll need to upload the buttons on your own to create the URL.

Reply

Sassy Jeweler February 10, 2012 at 1:45 pm

Thanks so much for this fun tutorial and the awesome pantone colors as well!!!

Reply

Zara February 18, 2012 at 1:22 pm

Hi, I have managed to get the link to go in the right direction but the icon is not showing up, it’s just a box with an ‘x’ in it. I cannot figure out what i’m doing wrong. Also I cannot figure out how to even find the HTML code for the icons I downloaded (the turquoise set). I’m completely clueless with all this and would really appreciate your help :)

Reply

Kira @ hernewleaf February 18, 2012 at 1:35 pm

Zara, you will need to upload the buttons to an image hosting site first. There are lots of free options out there such as Photo Bucket or Picasa. Once you upload, to will be able to see the URL for the image and insert it into the code.

Reply

MaJo_BV February 20, 2012 at 7:32 am

Hi Kira!
Thank you so much for this TUT. I’d been wondering for a while how I could do this, and finally thanks to you I know how ^_^. Your tutorials is clear and easy.
Just one thing… How can I make the buttons stay one next to the other (aligned horizontally)? Now they are one below the other (aligned vertically).
I’m adding the link to my blog in the website box, so that you can check it out and see what I mean.
Thanks again!

Reply

Kira @ hernewleaf February 20, 2012 at 10:19 am

It looks like the buttons your are using are too large for your sidebar – if you want them horizontal, you’ll either need to reduce the size of your buttons in an image editing software, or increase the size of your sidebar in Blogger.

Reply

MaJo_BV February 23, 2012 at 5:58 am

Thank you so much Kira! I modify the column width and also the buttons size and it worked!!! I love how my redesign is coming up, and you were very helpful! I’ve been trying to add your smallest button to my blog, but it’s not working ;-(

Reply

MaJo_BV February 23, 2012 at 6:47 am

I thought you’ll like to know that I wrote a post about your very helpful tutorials! I hope you like it ^_^

http://lapatisseriedesidees.blogspot.com/2012/02/redesigning-part-i.html

Reply

emilie February 25, 2012 at 10:56 am

Great tutorial, I’ve just added the icons, thank you so much !

Reply

Rhianna February 28, 2012 at 12:23 pm

Thank you so much for this much needed tutorial!! I have blogger so I had to do a little research…I used Photobucket for my images. For those that are using Blogger, once you upload your image to photobucket, you need to copy “direct link” from the photobucket image and insert that after img src=” This is what was confusing me, so I thought I would share :)
So, now I have buttons!

Reply

Kira @ hernewleaf March 1, 2012 at 10:52 am

Sorry for the confusion Rhianna, I’ve been creating and editing images since I was around 13 so sometimes I forget that not everyone knows these things! Thanks for reminding me to be extra thorough. ; )

Reply

hugw March 1, 2012 at 3:54 am

i still dont understand how i can publish my own icon for a link like that….
how did you do this- “http://hernewleaf.
files.wordpress.com/2012/01/facebook.png”?

and is there a way to make the icon bigger?

Reply

Kira @ hernewleaf March 1, 2012 at 10:50 am

You need to first upload the image to your own host, such as Photo Bucket.

Reply

Intellection March 6, 2012 at 12:26 pm

So glad I stumbled upon your blog! Love this page, so helpful and easy! I’ve been meaning to find out how to add those cute little buttons for so long :)

Reply

Wendy March 22, 2012 at 6:12 pm

Hi Kira! Thanks for sharing. I too would like to add a tumblr icon to the mix – can you please share your fee structure with me? Thanks so much! Wendy

Reply

Kira @ Her New Leaf March 22, 2012 at 6:21 pm

Hi Wendy, as I said above, I did not make these icons, they are from The Academy – if you are interested in purchasing, you need to contact Isa at her page linked above.

Reply

Paige March 29, 2012 at 4:41 am

great tutorial took me a little while to get, and i found Flickr doesn’t work for this, but i got there in the end! will defiantly be following your tutorials in the future, thanks!

Reply

Martha March 29, 2012 at 10:32 am

Great Post :) Trying to pimp my blog so this is just what I need!

Reply

CulinarilyCourtney March 29, 2012 at 5:17 pm

This was EXTREMELY helpful. I just spent an hour or so “primping” my blog, and boy, what an improvement! Thank you so much!!!

Reply

Hannah March 30, 2012 at 7:41 pm

Your tutorial was crazy helpful! I haven’t even touched HTML code since I played around with it in Myspace years ago. I wrote up a little post giving you credit for the tutorial (as well as credit to Isa for the buttons).

The only question I have is that the buttons (I used the ones from The Academy) seem to be appearing as rather large, and a little pixelated (spelling?) on my site. I used Flickr instead of Photobucket, but I didn’t think that would make a difference. Any thoughts/suggestions?

Reply

Kira @ Her New Leaf April 1, 2012 at 12:49 am

Hi Hannah, glad you found this helpful! Your problem might be caused by your choice of host – Flickr is mostly for hosting photographs which are saved in a different file format (JPG) than other graphics (PNG, GIF), so I think what may be happening is that your icons are getting converted to JPGs when you upload them. Try Photobucket, you shouldn’t have any issues. Hope this helps!

Reply

Hannah April 5, 2012 at 4:01 pm

Photobucket worked like a charm! Thanks! :)

Reply

Beth April 8, 2012 at 6:25 pm

Thanks for the great tutorial! Thanks to you I was able to easily add those cute icons to my blog. I’ll be using some of your other tutorials soon.

Reply

jcharbour April 9, 2012 at 2:55 pm

How did you get space in between your icons?

Reply

Kira @ Her New Leaf April 17, 2012 at 10:30 pm

Easy! Just add a space between the closing tag (/a) of each button and the opening tag (a) of the next! (It’s hard to demonstrate code in the comments, if you can’t figure it out, shoot me an email!) If your blog is on Wordpress.com, the RSS link is http://yourblog.wordpress.com/feed

Reply

jcharbour April 9, 2012 at 2:58 pm

Also, How do you set-up the RSS one?

Reply

angela April 17, 2012 at 7:54 am

need a youtube honeysuckle if possible

Reply

Kira @ Her New Leaf April 17, 2012 at 10:29 pm

Hi Angela, If you’re interested in custom buttons, you can contact Isa, the creator of the buttons, at the link provided above.

Reply

Ashlie April 18, 2012 at 1:15 am

Hello, i was wondering if you can tell me how to get the images to sit side by side on bloggers side bar?

Reply

ashlie April 18, 2012 at 1:49 am

you will be happy to know i have worked it out – thanks!

Reply

Nicole April 20, 2012 at 5:42 pm

Hi, Kira! Finding your blog came at the perfect time–this is just what I needed! When I enter the html code into the text widget and hit “save,” the website urls disappear from the widget and I’m just left with the sharing icon images (they don’t link to anything). Do you have any idea what might be going on? Thanks so much!

Reply

Kira @ Her New Leaf April 20, 2012 at 5:47 pm

Hi Nicole! Make sure that you have every piece of the code above, every letter is important! Be sure that you have the complete urls, starting with http://. If you’re still having trouble, feel free to email me at kira@hernewleaf.com, I’d be happy to help!

Reply

Nicole April 20, 2012 at 7:06 pm

Thanks, Kira! Turns out it was a little quirk with copy-pasting from Word. An FYI to anyone who encounters the same problem I had: just type the urls into the text widget or copy them from the actual web page instead of copying them from a Word doc. :)

Reply

katie apessos April 20, 2012 at 7:36 pm

This was so helpful! Thanks so much!

Reply

AureliaDiesel April 21, 2012 at 11:43 am

Thank you so much for this helpful information! I found your blog through ‘Freshly Pressed’ and thanks to your help I now have social media buttons on my blog AureliaDiesel.com!

Reply

Brittany April 24, 2012 at 9:34 pm

Argh! The twitter one wont work for me.. i paste the html in the box and it shortens and changes it. All that shows up is the icon but not linking to twitter. Any ideas? Pinterest worked fine but this wont for 45 minutes! ahhh So happy I found your blog randomly and hope I figure this out!!! :) Thank you

Reply

Kira @ Her New Leaf April 24, 2012 at 10:15 pm

Brittany – I clicked thru to your blog and it works fine for me! Takes me right to your twitter profile – great job!

Reply

Brittany April 24, 2012 at 10:19 pm

I was jumping up and down when it worked.. i typed it manually like another blogger mentioned in the comments above! YAY!! so happy..took an hour ;) I will make a post about this tomorrow hopefully..i really want a linkedin and email icon so i notified your friend

Reply

winterlust April 25, 2012 at 2:36 am

Thanks so much for this post! I’ve been looking around all day and I couldn’t believe how easy it was to add some links.

Reply

onelmon April 25, 2012 at 6:38 pm

Thank you very much for the easy step-by step tutorial and sharing Isa Maria’s blog with us, following her blog too now! It works! Thanks again! =D

Reply

krista April 25, 2012 at 7:27 pm

Thanks so much for these! used them on my blog and gave you a shout out and a button :)

http://mylifesomewhereinthemiddle.blogspot.com/

Reply

Sarah April 26, 2012 at 5:03 pm

Hi Kira. My name is Sarah. I just discovered your awesome blog though Pinterest. I’ve been trying to figure out how to do this, I’ve wanted to put those adorable little buttons on blog for forever, so I’m glad I found this. So, I did it, I followed the instructions, at least I think I did, but if you look to the left you will see that they are kind of a mess. I’m trying to figure out how to get them side by side and I’m stumped. I was hoping you might be able to tell me what to do?

Here’s a link so you can see what I’m referring to. I know my blog is a bit messy at the moment, I am in the process of revamping, so please excuse the mess. If you can help I would really appreciate it.

Thanks!

Sarah
http://skylarinc.blogspot.com/

Reply

Erin April 30, 2012 at 11:36 am

This was so great Kira! I ended up making my own buttons, but your instructions on how to add them were fantastic and so helpful! I’m definitely going to be following your series now! :)

Reply

Penelope May 6, 2012 at 5:54 am

Wow! I am a simpleton when it comes to the technical side of blogging but this post was a huge help and I managed to add my relevant buttons. I shared your great post/blog too.

Many thanks
littlecloudfactory.blogspot.com

Reply

Kira @ Her New Leaf May 6, 2012 at 11:14 am

They look great, Penelope – good job!

Reply

Courtney Giles May 7, 2012 at 12:02 pm

Thanks so much for your help!
Courtney xx

Reply

Olga May 7, 2012 at 12:48 pm

I can’t thank you enough for this tutorial!!!!
I’ll be back for more!!!!
xxx

Reply

Winnie Crystal May 9, 2012 at 3:45 am

This is amazing! Thanks for the tutorial! I’ll add this to my blog. <3

Reply

Leila May 15, 2012 at 1:51 pm

Is it appropriate to say “I love you!”

Reply

Kaitlin Jenkins May 16, 2012 at 9:18 am

I finally sat down and worked on this and got my buttons installed. Yippie! Thanks! :)

Reply

Leave a Comment

{ 11 trackbacks }

Previous post:

Next post: