Changing layout of social media icons on sidebar

  • Author
  • #1310554

    I’ve managed to get social media icons onto my blog using the image widget. What I don’t like it the layout – they are in one long vertical line (in position 1, 2, 3, etc). I’d like to have them clustered together in the first position of the sidebar. (Changing the alignment doesn’t help). Is this possible? Thanks in advance.

    Blog I need help with –

    The blog I need help with is



    The sidebar width in Twenty Twelve is sidebar width is 250 pixels and the 7 images must be reduced in size to fit side by side in the sidebar.

    Use a text widget and copy and paste the code below into it:

    <a href=""><img class="alignnone" title="Bloglovin'" alt="Bloglovin'" src="" width="25" height="25" /></a><a href=""><img title="Email" alt="Email" src="" width="25" height="25" /></a><a href=""><img title="Facebook" alt="Facebook" src="" width="25" height="25" /></a><a href=""><img title="Flickr" alt="Flickr" src=";h=25" width="25" height="25" /></a><a href=""><img title="Pinterest" alt="Pinterest" src=";h=25" width="25" height="25" /></a><a href=""><img alt="" src="" width="25" height="25" /></a><a href=""><img alt="" src="" width="25" height="25" /></a>


    Thank you so much for your quick reply!! Amazing! I’ve done what you said and it’s worked but they just look so teeny tiny! Is this the biggest they can be? Could you send me a similar code which spreads them out over two lines so therefore each icon is a bit bigger (and I think I’ll take out the Email icon because I can’t figure out what url to link it to)?
    Again, thanks in advance.



    You can chnage the size of the images in the code and increase them. Fiddle around with increasing the numbers until you get the size you want that still fits in the sidebar in one line.


    Yes! I’ve done it! I can’t thank you enough! It’s exactly what I wanted but never thought I’d figure out.



    Hooray! That’s great news. Best wishes with your blog.



    I’m having the same issue with my blog –

    At first I was trying to arrange by 4 social media icons in a square, 2 on top and 2 at the bottom, but one of them was always out of sinc. Now I’ve reduced the size to try and to get them in a single horizontal row but I still can’t get it to work and I don’t really want to go too much smaller than I already have.

    I’d be really grateful for any help.



    Your problem isn’t the size, it’s the alignment: you need to use image codes without alignment classes. If you want the images to be as large as possible, as close together as possible, and the whole group centered, use this:

    <div style="text-align:center;">
    <a href="" target="_blank"><img alt="Facebook Icon" src="" /></a><a href="YOUTUBE_URL_HERE" target="_blank"><img alt="youtube5" src="" /></a><a href="" target="_blank"><img alt="Twitter Icon" src="" /></a><a href="" target="_blank"><img alt="RSS Icon" src="" /></a>

    • I corrected some other mistakes too.
    • Don’t forget to add the YT URL where I’m showing.
    • The four images don’t come from the same set. They’re all 64×64, but the RSS icon will look larger, because it has a grey border around it while the others have white space.



    That was quick! Thank you very much.

    Is there any way to align the icons to the left without losing the square? At the moment it isn’t in line with the rest of my widgets because it’s centered. If there’s no way to change this could you tell me the image code to have my icons in arranged horizontally instead?

    Thank you again.



    You’re welcome.
    If you want the left aligned, remove this from the beginning:
    <div style="text-align:center;">
    and this from the end:

    If you want them all in one row, turn each image URL from this:
    to this:



    Wonderful! I’ve been trying to figure that out all day and it was solved within a couple of hours of asking here.

    Have a great day!

The topic ‘Changing layout of social media icons on sidebar’ is closed to new replies.