next
Helplogger
Home
Blog DesignWidgets SEO Menus Po ...
How To Add Social Media Icons to Blogger Header
70 comments
This tutorial will help you to add social media icons in the top right corner of the page which could increases the likelihood that readers can follow through the various social networks. There are several ways to do this, like adding a new widget section to the blog headerbut now, we'll do it using an unordered list that uses icons of Facebook, Twitter, Google+ and blog feed, and as a bonus, the icons will rotate when you hover over them.
You can see a demo in this test blog.
Adding Social Media Icons to Blogger HeaderStep 1.From your Blogger dashboard, go toTemplateand click on theEdit HTMLbutton:
Step 2.To expand the style, click on the small arrow on the left of... (screenshot 1), then click anywhere inside the code area to search (using CTRL + F) for the]]>tag (screenshot 2) and add this code just above it:
/* Social icons for Blogger
-------------------------------- --------------- */
#social-icons {
margin-bottom:-30px;
height:50px;
width:100%;
clear:both;
z-index: 2;
position: relative;
}
.social-media-icons {
display:table
}
.social-media-icons ul {
text-align:right;
padding:5px 5px 0 0
list-style-image:none;
list-style-position:outside;
list-style-type:none;
}
.social-media-icons ul {
margin-bottom:0;
padding:0;
float:right;
}
.social-media-icons li.media_icon {
margin-left:6px;
padding-left:0 !important;
background:none !important;
display:inline;
float:left;
}
.social-media-icons li:hover {
-moz-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(-360deg);
-moz-transition: all 0.5s ease-in-out;
-webkit-transition: all 0.5s ease-in-out;
-o-transition: all 0.5s ease-in-out;
-ms-transition: all 0.5s ease-in-out;
transition: all 0.5s ease-in-out;
}
Screenshot 1:
Screenshot 2:
Step 3.Now search for this line
Step 4.And just above it, add this code:
Step 5.Finally, Save the Template to apply the changes.
The effect is done with CSS3, so this effect will not work in older browsers.
Like
25
Random Posts
How To Use The New Blogger HTML Editor12/04/2013 - 30 Comments
How to Hide Blogger Sidebar to Display AdSense For Search Results05/05/2012 - 6 Comments
Add Static Facebook Pop Out Like Box with Smooth Jquery Hover Effect06/04/2012 - 35 Comments
Related Posts:
What is the difference between padd...
How to Use Cookies in Javascript
How to Add CSS code To Blogger usin...
How to add custom Variable definiti...
Understanding the Page Elements of ...
70 comments:
jempot2 mempawah 5/29/2013
thank you for sharing how to set up a social icon in the header blogger.
And not only serves it easier for visitors to share content, but also as a tool to beautify blog. Reply
Natasha Parker 5/29/2013
How do I make mine go flat, like yours are in the screenshot please? You can see them all messed up here --> http://intertwinedbm gm.blogspot.com Reply
Replies
Admin 5/30/2013
Hi Natasha,
Sorry but I don't see them anywhere on your blog.
Could you make a screenshot?
John Cena 5/29/2013
Great post, Indeed. I will try this code in my blogs to get better blog website design. Thanks a ton for sharing this wonderful information with us.
Reply
Rockers Bay 5/30/2013
It actually work honestly thanks alot
Reply
Junix Chin 5/31/2013
thank you for this blog!.. it really helps me cause im new in the bloging world
here 's what i've done http://easydomainfre e.blogspot.com/ Reply
Cerwenlloyd Gefjun 6/02/2013
how can we put this social media buttons in front of the header having an image without any "damage made" on it? Reply
PATRICK NG 6/04/2013
Thanks so much for this tutorial. You make my blog a better looking blog :)
www.septimes.com Reply
Anonymous 6/05/2013
This worked great except it scooted my blog title down. How can I fix it? I have a pre-made template but can edit the html. Thanks!! Reply
Replies
Admin 6/06/2013
You have to reduce themargin-bottomvalue (-30px) that is just below#social-icons {
Thanks for visiting!
Amy Z Green 10/30/2013
Hi this didn't look right for me and even when I deleted all the code the icons are still there. How do I remove them? http://bitnbookpromoter s.blogspot.co.uk/
Anonymous 6/09/2013
work perfectly, but i got problem because i use responsive template from Flat UI
do you have tutorial about add social media button on sidebar/ use widget? Reply
Marifel 6/09/2013
amazing! I used this on my site
http://collegemarketing10 1.blogspot.com/ Reply
Empower Your Page 6/17/2013
Great post - I have a handful of blogger blogs I should neaten up and add social icons too if only to increase their social sharing a little. Love what you've done with your blog. :) Reply
Dress your life. 6/19/2013
It worked! But the icons are located before my blog header, so now the last part of my blog title is missing. Do you know how to fix this?
Naomi, x Reply
CB 6/24/2013
Thank you for sharing. Worked perfectly. Reply
Gordana Djuric 6/25/2013
Thanks, work perfectly. Reply
Nikki 6/26/2013
Hi, thanks for this. I'm wondering how to actually change the position of the icons please? Reply
Keraily.info 6/26/2013
These are good tips in here! Reply
Isabella Dorer 6/28/2013
Thanks for sharing, helped me so much! I got a question: could you do a tutorial on designing those buttons in photoshop? I'd like to make one for instagram and pinterest and so on, but I don't know how ... :) Reply
TwynMawrMom 6/29/2013
Yes this was a great tutorial and I was able to follow it directly, but I actually would prefer the icons in my sidebar, not in my header, because it cut off my header image. Thanks, though! Reply
PTC Tips 7/11/2013
thanks for information...
its worked Reply
Mr. Ankit 8/09/2013
how to open these in a different tab ? Reply
Replies
talisbury 9/01/2013
I'm keen to know too! Thank you for the post by the way, and thank you for making it so easy to follow!
Andrew Weleilakeba 8/25/2013
I tried errors appearing....i have a template from deluxetemplate.net..how can i use your explanation..i seriosly want the icons.. Reply
ataur 8/26/2013
Hello admin,
Thanks for this valuable post. Nice code for me. But i am in vain.
Best Regagards,
ataur Reply
Bambang Nurdiansyah 8/30/2013
great tuts, i'll just take this one... thanks for clear share. Reply
Sona S 9/04/2013
Thank a lot for the post. Can you please add a pinterest button and subscribe to email button in this? Reply
Tainers Kiamba 9/06/2013
Sure it worked. But i had problem with the last button....see my site
http://tainersposts.bl ogspot.com/
The last button does not show anything..... it just says page cannot be found... Reply
Jane Doe 9/09/2013
My blog's HTML doesn't have ANY of the code we're supposed to find....what? Reply
Chad Otto 9/19/2013
Thanks worked well Reply
Mansi 10/04/2013
This was so helpful.
Thanks a ton! Reply
Livia 10/09/2013
This works great. I spent so much time looking how to do this and cam accross your post by accident. I tried to add pinterest button but I don't have image source code. Would you happen to have that? Reply
Cami 10/10/2013
I keep getting a "400 Error" when I try to do this. What am I doing wrong? Help! Reply
SHABAZ KHAN 10/10/2013
in my blog, the buttons get pasted on left side and put down title right below them, what should i do for this? help Reply
Tabea 10/15/2013
Hey I hope that you can help me. Here's the link to my blog : www.tabeamw.blogspot. com
You can see that the right side of my header is away because of the icons.
Can you help me? Thanks :-) Reply
Game mobile 10/18/2013
This is nice post. Please help me add addthis social button in my blog. Thanks for your help. Reply
Buy Cheap Facebook Likes 10/20/2013
Thanks for the tutorial I will apply at my blog. Reply
George Book Review 10/23/2013
Thank you so much! This is perfect and easy to follow! I have shared it for others because you totally deserve it! Reply
Yellow Bells 10/30/2013
this is an awesome tip I was looking for long time. I am sporting the icons now in my blog. thanks to you Reply
Yellow Bells 11/02/2013
hi admin, this is a great tutorial, I want to ask how can I group my icons in to three, its eating up the space in my header, thanks a lot Reply
Zakariya Abdulhameed 11/04/2013
It works thanks, but my rss feed does not work
http://zakson- tech.blogspot.com/ Reply
SANTHOSH K R 11/07/2013
when i tried this on my blog, the four icons worked perfectly but they were not displayed over the header image instead my header image got resized and the icons were displayed on the right side horizontally please help me to place the icons on the top right end of the header image..
my blog address is :
http://easysubtitles.blogs pot.in/ Reply
Tracy Remillard 11/08/2013
I've tried 3 times to add this code, but it won't save to my blog. Reply
sandeep 11/11/2013
thanks a lot..finally i got it from you..its awesome..and its working now perfect thanks Reply
Rafay Ghafoor 11/16/2013
Thanks! Reply
mommyshane.blogspot.co m 12/03/2013
yey! Thanks! :)
Reply
Jual Jas Pria 1/01/2014
Thanks gan udah nge share Reply
Emily Hendrix 1/05/2014
That's amazing! Thanks so much.
Is there a way to add an instagram button? Reply
¡CHIVAS A GANAR! 1/10/2014
How can I put them over the banner I have on my header. Thanks. Reply
Replies
¡CHIVAS A GANAR! 1/17/2014
Hi, there's no way to do it?
Admin 1/18/2014
If you want to move them further from the top, change the-30px;value frommargin-bottom:-30px;(#social-icons). To move more on the left, add below#social-icons {this line:
margin-left: -50px;
Then change-50pxwith a bigger/smaller value.
Sorry for replying so late.. I hope this will help you!
Carlijne Brouwers 1/17/2014
Great article, helped me a lot!
One thing though: I'd like to change the icons into black and white ones and I've been trying to change the urls with the ones of my chosen images, however it doesn't work. I'm able to replce them but then nothing shows on my blog. Which url should I use exactly?
The linke to my blog is the following: http://lifeofahauteco uturehooligan.blogsp ot.nl/
Thanks in advance! Reply
Replies
Admin 1/18/2014
Did you click on the Save template button after replacing the URLs? And please make sure that you don't remove any quote and replace only the address in blue. Thanks for stopping by!
LifeIsLauren 1/29/2014
Thank for this! It's really cool. I just have a problem with adding new icons because some of the icons I tried use are too large so I ended up getting a massive icon. How do I make it smaller?
Thanks :) Reply
Replies
Admin 1/29/2014
Hi Lauren,
Please add this code above]]>
.media_icon img{
width: 30px;
height: 30px;
}
And change 30px if you want to make your icons bigger/smaller, then Save your Template.
I hope this will work for you. Thanks for visiting!
Jay Q 2/01/2014
Hi, I posted my icons and they ended up being placed vertically on top of the header (with the header posted after and beneath it) any fix? Thank you! Reply
Replies
Admin 2/03/2014
Hi Jay,
Add the codes in bold to this part:
#social-icons {
margin-bottom:-30px;
height:50px;
width:100%;
clear:both;
z-index: 2;
position: relative;
display: inline-block;
float: left;
}
Ginger Hultin 2/09/2014
Thanks so much for this - easy to follow. I feel empowered! Reply
TheLastDreamer 2/16/2014
Thanks a lot!! :) I was searching the entire web just to get this feature added. It looks great to have it in my blog. But I would like it to be placed on the top towards the extreme right. Its now placed right above my blog title. http://blushblossomsgall ery.blogspot.in/ Reply
Nishel 2/19/2014
This was so useful. I am trying to add the instagram logo in my header but am struggling to find a matching size and shape to the ones already given by you. Do you happen to have a link to a matching instagram logo? Reply
eric son 2/23/2014
Oh it make my Blog very nice http://caomode.blogs pot.com/
thank you ;) Reply
Adam Evans 2/27/2014
Thanks for the tips - worked for me. Do you know how to customise the text that appears when you share via Twitter so that it gives a personal twitter handle and not ' via @Helplogger' ?
Thanks! Reply
Sara Crisostomo 2/27/2014
Thank You! Reply
Manasi 3/06/2014
Thanks dear...very useful article :) Reply
orangeserif 3/07/2014
THHHHHAAAANKKK UUUUU Reply
El Sayed Ramadan 3/08/2014
how to add youtube ? Reply
Anonymous 4/01/2014
Thank you so much! Your instructions are clear and easy to follow! Reply
My Yellow Bells 4/02/2014
thank you for this wonderful tutorial but how do I adjust the header size, please look in my blog I want the icons above the header, can you please help how to do it. here is the link of my blog. many thanks http://myyellowbells.blo gspot.ae/ Reply
Theresa 4/12/2014
Hi,
Thanks for sharing your exertise.
I don't have
in my blog. Can you help, please?
Thank you. Reply next
Customization
- Change what's in red with your usernames and id: the first is your Facebook username, the second is that of Twitter, in the third you should change the X by the ID of your Google+ profile and in the fourth you will put the name of your blog.
- To change the icons, just replace the urls in blue with the ones of your images.
- You can add more icons if you want, you just have to add beforea line like this for each extra icon you want:
I do not even know how I ended up here, but I thought this post was great.
ReplyDeleteI don't know who you are but certainly you are going to a famous blogger if you are not
already ;) Cheers!
Review my site; buy instagram Followers cheap