Slide show

How To add Gadget inside Blogger Blog Header

Step-1 (Default Header Layout):
Login into your blogger account and visit theLayout section of your blog to see the header position whether it is single or has already been divided. Here is screenshot for the default blogger blog header.

If your blog contains only one column in header section as above, then follow the next steps to divided it into two parts.

Step-2 (Template Editor):
Go to the Template section of your blog and click on Edit HTML text button next to the Customize button. See the screenshot for template Edit HTML button.

Step-3 (Edit Template):
Click on Jump to widget from the top drop down menu and select Header1 as shown in this screenshot.

Step-4 (Delete Default Header Section):
You will see codes which represents default blogger blog header section.
Now, delete all these codes so that the older header section will be deleted.

Step-5 (Insert New Header Section):
Copy and paste these HTML codes in place of old header section deleted codes as shown in this screenshot.

<!-- SWT Header Section START --><div class='region-inner swt-header-inner'> 
<b:section class='header-left' id='header-left' maxwidgets='1' name='Header-Left' showaddelement='yes'/> 
<b:section class='header-right' id='header-right' maxwidgets='1' name='Header-Right' showaddelement='yes'/> 
</div><!-- HELP: -->

Don’t delete the HELP URL address from the last line of above code as it may help you in future for any updated tutorial and code upgradation.
Step-6 (CSS for New Header Section):
Now, press Ctrl + F for search the


and paste the following CSS codes above/before it.
.swt-header-inner { /* HELP: */ 
width: 100%; display: flex; 
.header-left { 
padding: 0; 
.header-right { 
padding: 0; 
/* Blog Header inserted by */} 

See the screenshot here.

Now, click on Save Template to save the all avobe steps in your blog template.
Customization: You may adjust the width of Header-Left and Header-Right section in accordance with the title/logo of your blog or the size of AdSense Ads to be displayed.
You may also specify the width in pixel instead of percentage. Suppose you want to show your blog LOGO (70px) on the left side and insert AdSense codes (728px) on the right side in header section. Replace the CSS codes of header-left width:70px;and header-right width:730px; depending of your blog layout width (800px).
Step-7 (Insert New Gadget):
Navigate the layout section of your blog to see the difference. Here is the screenshot.T


No comments:

Post a Comment