How to Add Extra Gadget/Widget Section to Blogger Header
Let’s go one step forward and add an extra gadget section within Blogger header in new template designers. Within this gadget section you can add anything that you may want, for example, subscribe buttons, search box or your AdSense ads within the Blogger header.
In previous tutorial I have told you how to resize Blogger header which is needed to be done first to give space for the extra gadget to fit in. If it is done then follow the below steps.
Step 1: Go to Template tab and backup your template. Click "Edit HTML" button.
Step 2: Find for the below codes which you have edited and implemented in previous tutorial:
<div class='fauxborder-left header-fauxborder-left'>
<div class='fauxborder-right header-fauxborder-right'/>
<div class='region-inner header-inner'>
<b:section class='header header-left
' id='header' maxwidgets='1' showaddelement='no'>
<b:widget id='Header1' locked='true' title='Blog's Title (Header)' type='Header'/>
</b:section>
<div style='clear:both;'/>
</div>
</div>
Now find for <div style='clear:both;'/>
which is marked in red in the above codes and before it add:
<b:section class='header-right crosscol' id='header-right' maxwidgets='1' showaddelement='yes'/>
So the full code will be:
<div class='fauxborder-left header-fauxborder-left'>
<div class='fauxborder-right header-fauxborder-right'/>
<div class='region-inner header-inner'>
<b:section class='header header-left
' id='header' maxwidgets='1' showaddelement='no'>
<b:widget id='Header1' locked='true' title='Blog's Title (Header)' type='Header'/>
</b:section>
<b:section class='header-right crosscol' id='header-right' maxwidgets='1' showaddelement='yes'/>
<div style='clear:both;'/>
</div>
</div>
Step 3: Find ]]></b:skin>
and before it add the following CSS:
.header-right { display: inline-block; float: right; width: 400px; }
Now all is left is to change the width
. Increase or decrease the pixels according to your needs, for example, for Leaderboard AdSense ads, the width will be 728 pixels.
Step 5: Save your template. Go to Layout tab and from there you can add a new gadget to the newly created extra gadget section within Blogger header. If you find that the extra gadget section is created just under your Header gadget as shown in the image below, you need not to worry about it as when you will view your blog, it will appear side by side as it's seen on the demo.
Important
It is only for new Blogger templates. If you have a layout template then you should follow the tutorial about adding sidebar (Gadget Section) to header in Blogger.