Maybe you have seen that many blogs have AdSense Units or other ads and widgets in the header section of the blog, the most popular format being the AdSense 468x60 ad unit - see in the screenshot below:
But how we can add something inside blogger header - be it a Adsense unit, a search bar, social media buttons or a widget? By simply adding a section in the header. First off, to give space for the extra gadget to fit in, our blogger header should be resized.
A. Resize blogger header
Step 1: Go to Blogger Dashboard >> Design >> Edit HTML and backup your template
Step 2: Check the "Expand widget templates" box
Step 3: Find (CTRL + F) this piece of code:
Step 4: Replace it with this code:
Change the pixels in red with the image's height and width of your blogger header and changefloat: left; to float: right; if you want to change the position of your logo.
Step 5: Find the below code:
Step 6: Replace it with:
Now "Preview" your template, you will find that the background color of Blogger's header is not visible or it's missing. To bring it back, you need to add some more snippets:
Step 7. Find the following code:
Step 8. Just above it, paste this:
Note: if you can't find the code from step 7, search for this instead:
Step 9. Save Template.
B. 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.
Step 1: Go to Dashboard >> Design >> Edit HTML and backup your template.
Step 2: Find for the below code which you have implemented in previous step:
Step 3. Paste before/above it, the following code:
Step 4. Now find:
Step 5. Paste just above it, this CSS code:
Change the width that is marked in red color. Increase or decrease the pixels according to your needs and positioning new header section.
Step 6. Save Template.
Now all you have to do is to go to Design >> Page Elements tab and add a new gadget to the newly created extra header section in Blogger. You may find that the extra gadget section is created just under your Blogger header as shown in the image below.
Don't worry about its position, the widget now should appear side by side.
But how we can add something inside blogger header - be it a Adsense unit, a search bar, social media buttons or a widget? By simply adding a section in the header. First off, to give space for the extra gadget to fit in, our blogger header should be resized.
A. Resize blogger header
Step 1: Go to Blogger Dashboard >> Design >> Edit HTML and backup your template
Step 2: Check the "Expand widget templates" box
Step 3: Find (CTRL + F) this piece of code:
/* Header
----------------------------------------------- */
Step 4: Replace it with this code:
/* Header
----------------------------------------------- */
.header-left{
display: inline-block;
height: 35px;
width: 350px;
float: left;
}
.header-right {
display:inline-block;
float:right;
}
Change the pixels in red with the image's height and width of your blogger header and changefloat: left; to float: right; if you want to change the position of your logo.
Step 5: Find the below code:
<b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
Step 6: Replace it with:
<b:section class='header header-left' id='header' maxwidgets='1' showaddelement='no'>
Now "Preview" your template, you will find that the background color of Blogger's header is not visible or it's missing. To bring it back, you need to add some more snippets:
Step 7. Find the following code:
</div>
</div>
<div class='header-cap-bottom cap-bottom'>
<div class='cap-left'/>
Step 8. Just above it, paste this:
<div style='clear:both;'/>
Note: if you can't find the code from step 7, search for this instead:
<b:include name='description'/>... and paste the code from step 8 just below it.
</div>
</b:if>
</b:includable>
</b:widget>
</b:section>
Step 9. Save Template.
B. 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.
Step 1: Go to Dashboard >> Design >> Edit HTML and backup your template.
Step 2: Find for the below code which you have implemented in previous step:
<div style='clear:both;'/>
Step 3. Paste before/above it, the following code:
<b:section class='header-right crosscol' id='header-right' maxwidgets='1' showaddelement='yes'/>
Step 4. Now find:
]]></b:skin>
Step 5. Paste just above it, this CSS code:
.header-right {
display:inline-block;
float:right;
width:400px;
}
Change the width that is marked in red color. Increase or decrease the pixels according to your needs and positioning new header section.
Step 6. Save Template.
Now all you have to do is to go to Design >> Page Elements tab and add a new gadget to the newly created extra header section in Blogger. You may find that the extra gadget section is created just under your Blogger header as shown in the image below.
Don't worry about its position, the widget now should appear side by side.
If you have any questions or need some help, leave a comment below.
hmmm maxwidgets is not available in the dynamic view template.... i want jtml/java scrips in posts for dynamic view can u help me?
ReplyDeleteplease visit
ReplyDeletewww.justclicktoget.blogspot.com
ReplyDeleteI can't find this code in my HTML - any help?!
cant find either
Deletecan't find /* Header
ReplyDelete----------------------------------------------- */ in the EDIT HTML can you help?
check the website
funtravel247.blogspot.com
Wow, What an Outstanding post. I found this too much informatics. It is what I was seeking for. I would like to recommend you that please keep sharing such type of info.If possible, Thanks. gadgetcouncil.com
ReplyDeleteThis is Very very nice article. Everyone should read. Thanks for sharing and I found it very helpful. Don't miss WORLD'S BEST OffroadExtremeGTBikeRacingStuntsAndroidGame
ReplyDeleteThanks for sharing a great valuable content with us this work is appreciable and I have bookmarked your website If you needed a TV Repair service in Dubai you check out our services.
ReplyDeleteTV Repair