The Crafty Mummy

Crafts. Sewing. Quilting. Crochet. Tutorials.

  • Start Here
  • Welcome
    • Subscribe
    • About Me
      • Copyright
      • Disclosure
      • Privacy Policies
    • Advertise
    • Sharing
      • Recommendations
      • Shopping & Coupons
      • Books
  • Explore
    • Crafts
      • Beading
      • Kids
      • Paint
      • Storage
      • Christmas Crafts
    • Sewing
    • Quilting
    • Stitching
    • Crochet
      • Yarn
    • Life
      • Food
      • Organisation
    • Blogging
      • How To
      • Social Media
      • WordPress Plugins
      • Photography
  • Tutorials
    • Tips
  • Shop on Etsy
  • Shop on Redbubble

How to add social media icons to your sidebar

by Tonya Grant |Filed Under: Blogging, How To Tagged With: Sidebar, Social media Get a Weekly Update of all Articles

social media buttons blogYou’ve found your social media icons and you want them in your blog sidebar, but you have no idea how to get them there. This is the tutorial for you!

There is probably more than one way to do this, but I know this way has worked for me. This process will work for Blogger or WordPress, although in WordPress you have the option of using a plugin instead. You’ll need access to your blogger dashboard and a text document of some kind to write the code in, e.g. a Word document.

Step 1:

Download your icons to your computer. There are lots of free sets out there.

Step 2:

Create a new blog post and upload your icons into it as if you were adding pictures to a post. Save it but don’t publish it. This is a way of storing your icons online where you can find them. You could also upload them to Photobucket or a similar site.

Step 3:

Copy the URL of each button and paste it into a text document so you can write your code with it. Writing the code in a text document first, then copying it and pasting it into blogger just makes it a little easier.

To find that URL, click on the image in your Blogger post. You should get this pop up:

how to find image URL

Click on “Edit link” and you should see this:

hot to find image URL in Blogger

Copy the link in the box next to Web Address. It will probably start with “http:” and end with the file name. Paste that into your text document so you have it for later. Do the same thing for each of your images.

Step 4:

Now you need to create the HTML code. This is the snippet you need for each of your buttons:

<a border=”0″ href=”URL to go to” target=”_blank”><img src=”where the image is” /></a>

See the parts in red? They are what you are going to change.

  • URL to go to – is the link to the place you want people to go to when they click on your button. It might be your Facebook page, your Twitter profile, your store or your Flickr photostream. You can send them to any URL on the net.
  • where the image is – this is the URL for your image online. We put your images in a Blogger post and copied the URL of each one in Step 3.

Here’s an example from the blog I write with my friend, B, called Friends Who Cook.

URL for my RSS feed: http://feeds.feedburner.com/FriendsWhoCook

URL for RSS image: http://3.bp.blogspot.com/-aswCOYTQgwc/Tkm4tyb6DVI/AAAAAAAACxc/p-I72JOnIc8/s1600/rss.png

So here’s the code with my URLs replacing the red bits:

<a border=”0″ href=”http://feeds.feedburner.com/FriendsWhoCook” target=”_blank”><img src=”http://3.bp.blogspot.com/-aswCOYTQgwc/Tkm4tyb6DVI/AAAAAAAACxc/p-I72JOnIc8/s1600/rss.png” /></a>

Do this for each of your buttons. You will end up with a block of code like this for each button.

Step 5:

Now its time to put your buttons in your blog sidebar. Go to your Blogger dashboard again and go to the “Layout” for your blog. In the sidebar area, click on “Add a Gadget”, then choose a “HTML/Javascript” one. Copy all the code you created from your text document and paste it into the gadget box, then “save”.  You’re done!

EDIT: Check that your text program doesn’t change the URL’s into hyperlinks (you know, change them into links that you can click on and go to the page). If it does, then when you paste the code into Blogger it won’t like it. You might need to tell the document to save as “text only”, or right click on the links and “un-link” them. (Different text programs have different terms so have a look at the Help if you need to.)

DOUBLE CHECK: Sometimes when you cut and paste HTML code, there can be a problem with the quotation marks. So once you have pasted the code into the gadget box, go through and delete and re-type each set of quotation marks – you know, these things: “.  Seems odd but trust me, it makes a difference!

Some extras:

  • If you want the buttons centred in the column, add <center> at the start of the code and </center> at the end.
  • You can create groups of buttons if you want to. For example, put the <center></center> codes around two of your buttons, and then again around the next two. You’ll end up with the two sets underneath each other.
  • If you want a little space between the buttons, add some spaces at the end of the code like this:
rss.png” />spaces here</a>
  • You can add text into that space, too. I’d recommend a space before and after the text so it doesn’t touch the buttons.
I’m no expert on HTML code. What I know, I have taught myself by searching for tutorials online. There are lots out there! But if you have a question or a problem with this, let me know. I’ll try to help.
Oh, and I’d love to see your buttons when you’re done. Leave me a comment so I can come visiting.

Filed Under: Blogging, How To Tagged With: Sidebar, Social media

« Simple Baby Knitting Patterns
Hello, Lovely Readers »
Disclosure: There are affiliate links in this post.  This just means that if you click through and choose to purchase something I may get a small commission - at no extra cost to you, of course.  This helps me keep the content here at The Crafty Mummy free for everyone.

I love to chat so please leave me a comment or ask a question.

Don't stress if your comment doesn't appear immediately - sometimes I have to moderate comments thanks to spam visitors, but the comments from real readers will always get published. Scroll down to add your thoughts or ask a question.

Comments

  1. Chrissy says

    August 17, 2011 at 7:50 AM

    It’s funny you just posted this today.
    About 3 hours ago I went to like 6 different websites, trying to figure out how to do this! I figured it out, but this woud have been nice to have (:

    Chrissy

  2. CraftyMummy says

    August 17, 2011 at 10:15 AM

    Wish I posted it earlier for you, Chrissy! When I couldn’t find a tutorial for it out there, I thought I’d create one so hopefully it will help someone else who looks for it.

  3. Sonia Barton says

    August 18, 2011 at 2:01 AM

    This is wonderfully written! I’m sure it will be of lots of help.

    • CraftyMummy says

      August 19, 2011 at 8:06 AM

      Thanks Sonia It’s been pretty popular so far

  4. Reannah@{Shaped by Grace} says

    August 19, 2011 at 5:00 PM

    Thanks for sharing! Easy tutorial – I’ll have to give these a try!!! 🙂

    • CraftyMummy says

      August 19, 2011 at 9:42 PM

      You’re welcome, Reannah. I’m glad it makes sense to you. Let me know if you need any help

  5. Sammie says

    August 20, 2011 at 3:07 AM

    I have been trying to figure out how to do this FOREVER! Thanks so much for the step by step directions. I can’t wait until I have some time to sit down and try it.

    • CraftyMummy says

      August 20, 2011 at 12:16 PM

      You’re welcome, Sammie. Part of the reason I wrote this post was because I couldn’t find clear instructions out there to do it.

  6. Kristy says

    August 20, 2011 at 1:16 PM

    I’m so excited I found this tutorial over @ key lime! I’ve been wanting to do this for a long time but this is the first tutorial I’ve seen!
    Thanks for sharing!!
    Kristy

    • CraftyMummy says

      August 20, 2011 at 2:58 PM

      Just popped over to your blog and it looks like you’ve already done it – well done!

  7. Bonnie says

    September 2, 2011 at 12:52 PM

    what does it cost for you to make a few icons for me? I am having a hard time finding what I want!!!
    Thanks!!!

    • CraftyMummy says

      September 2, 2011 at 4:07 PM

      Hi Bonnie, If you want simple square icons like mine, I could make up to 10 of them for AU$5. You can choose the colours or I can match them to your blog background. If you want something bigger or a little different, I’d need to know what you’d like to give you a quote.

  8. Mohit Kumar says

    August 31, 2012 at 1:10 PM

    Dear Ma’am,

    Trust all is well with you. I am Mohit Kumar, Editor @ The Geek Solutions
    I was wondering if you would be interested in guest blogging on our blog.
    Please go through the URL and let us know.

    Regards,
    Mohit Kumar

    • CraftyMummy says

      August 31, 2012 at 1:49 PM

      Thanks for asking, but I wouldn’t have time at this stage.
      Best of luck with your blog,
      Tonya

  9. rigel says

    July 15, 2014 at 10:13 PM

    Thank you! so easy to follow. really helpful

    • Tonya Grant says

      July 16, 2014 at 11:35 AM

      You’re welcome, Rigel! Glad it helped you.

      I LOVE the look of your site! Just got lost in there for a happy 15 minutes!

Hi! I’m the CraftyMummy

Tonya is the voice behind The Crafty Mummy. She dabbles in lots of different crafts – patchwork, quilting, cross-stitch, scrapbooking, knitting, crochet and sewing. This is the record of projects she has done, and the projects she dreams of getting to! Read More…

Search

  • Email
  • Facebook
  • Instagram
  • Pinterest
  • Twitter
  • YouTube
Shop my Affiliate Favourites

Fat Quarter Shop for Fabric and More

Grab the Sew Sampler Box Here

AccuQuilt for Cutting Machines and Dies

QuiltyBox for Monthly Treats in the Mail

CreativeBug for Craft Classes

Pretty Darn Cute for Blog Designs like mine

Creative Market for Fonts, Images, Themes and More

OzGameShop for All the Games

Adrift for Fashion you’ll Love

Kindle Unlimited Membership Plans

Kindle Book List

Click to shop my kindle book list
Shop my Amazon Influencer Shop
Join the CrochetU and learn to crochet
New to TheCraftyMummy.com? Click here to see more
Blog Tools I use for TheCraftyMummy.com

Grammarly

Aweber for email newsletter

CoSchedule to stay organised and share

Milotree for social media

Genesis for blog framework

FoodiePro is my theme

Hosting with WPEngine

Powered by

Recent Articles

Disclosure: There are affiliate links on this site. This means that I may get a commission if you choose to purchase after browsing via these links - at absolutely no extra cost to you, of course. I only recommend products which I use and love, or that I think will be quality products that will be useful to my readers. It is the affiliate links in this site that help me keep my tutorials free of charge. Thank you!

Looking for something? Search here:

Copyright 2015 The Crafty Mummy · Built using Genesis Framework & Foodie Pro Theme