Adding widgets on both sides of Blogger header
This tutorial is in response to requests from readers. Some readers asked how to add a widget on each side of the header as pictured below, while others asked how to place multiple widgets on the right side of the header.

This tutorial will answer both questions. It’ll show you how to add any number of widgets into the header area, and arrange them in any way you like (as long as it’s horizontal :) ).
It’s an improved version of my previous tutorial on similar customization: Add banner, Adsense or search box in header, as it doesn’t require the addition of a new widget container i.e. section.
1. Unlock the header section
You probably notice that you can’t add widgets to the header section in Page Elements (for new interface: Layout). The reason for that is because it is locked. Blogger by default limits the header section to only one widget (the header).
Fortunately we can unlock it pretty easily. Go to Design > Edit HTML (for new interface: Template > Edit HTML) and look for this line:
<b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
replace it with this:
<b:section class='header' id='header' maxwidgets='' showaddelement='yes'>
What the new code does is removes the widget count limit, and adds the Add-A-Gadget link in the section.
2. Add widgets and get the IDs
Go to Page Elements and add in your widgets via Add-A-Gadget. Arrange them according to how you want them to appear on the actual blog. The topmost widget here will appear farthest to the left on the blog, and the bottommost one will appear farthest to the right.
Once the widgets are saved, check the widget IDs by following this tutorial: How to find Blogger a widget ID. You need to know the IDs so you can address the widgets individually when styling them in the next step.
3. Add CSS code
By now you’ve added the widgets in the header, but they are stacked on top of each other. In this step you will make the widgets appear side by side, add margins or paddings etc. Note: The horizontal layout will not be reflected in Page Elements i.e. the widgets will still appear to be stacked vertically.
- Go to Template Designer > Advanced > Add CSS (for new interface: Template > Customize > Advanced > Add CSS), enter the code below and press Enter key. Or you can paste it right before
]]></b:skin>in Edit HTML..header .widget { border: 1px solid; display:inline-block; *float: left; height: 200px; overflow: auto; margin: 10px 5px !important; vertical-align: top; } .header #Header1 { width: 50%; } .header #widgetID1, .header #widgetID2 { width: 20%; } - Replace
widgetIDwith the widget ID you get in previous step. Pay attention to the width property -you can set the widths to any values as long as the sum of all the widths, paddings, margins and borders of the widgets do not exceed the width of the header section. Otherwise the rightmost widget will be pushed below the rest of the widgets. - Look at the preview pane while doing the adjustment, your goal is for the widgets to align nicely as pictured above.
- Click Apply To Blog button when done.
Enjoy!
15 comments to "Adding widgets on both sides of Blogger header"
Whoa! great unique tips here! thans for sharing, Bro!
Thanks for sharing..
very useful
Like this post...
Thank you...
I just hope bloggers would not put widgets with heavy scripts (aka bandwidth suckers) up there beside their headers. If I encounter such blogs, I would quickly leave and read some other blogs.
How do we make the label page like your picture on right with short description
I read this article. I was very impressed by its contents.))
i have my header and i added to pictures, but like you said.....they are one on top of another. i tried to follow your steps but it didnt work to get them all side by side....help! it's driving me insane, lol.
@nicole
You forget to add in the CSS code (step 4).
Thanks for the great tip. I have applied it to my blog
http://frenchclassified.blogspot.com/
But when my partner looks views on her wider screen pc the widget on the left is on the top, not on the side.
nice one
@Steve
You've made a mistake here:
.header #widgetIDImage9, .header #widgetIDHTML9 {
width: 20%;
}
Try this instead:
.header #Image9, .header #HTML9 {
width: 13%;
}
Thanks for that Greenlava.
The header is now in-line on my partners larger screen, but has just got the width and hight slide adjusters showing on the left hand gadget, which is no big deal.
How can I get my widgetID? Sorry if I sound stupid.
@Anonymous
Just click the link given in step 2.
Nice topic i like its
If your question is unrelated to this article, please use our Facebook page.
When posting HTML/XML code, replace < and > symbols with [ and ] respectively. The reverse applies when copying code from my replies here.