How to Add Gadget/Widget Sections Anywhere in Blogger

Adding a new section in the Blogger template to add gadget or widget is possible in the conventional way. You can change the layout style of the template using the template customizer tool in the Blogger. But this do not works with most heavily customized Blogger template available.

how to create new widget gadget section in blogger

So for adding a new section for gadgets/widgets in Blogger; you will need to use a one line code in template body or you Blogger blog and you are good to go.

In this post; you will learn how to add a widget section in any part of the blogger template with a simple ion line code. Also you will see some example of it being used for adding a gadget/widget section in the header, adding widget section above or below of the post in Blogger.

What is Code for Adding Gadget/Widget Sections in Blogger

For adding a gadget or widget section in your blogger blog; following code is the only way to do so;

<b:section class='newsectionclass' id='uniquesectionid' maxwidgets='1' showaddelement='yes'/><div style='clear: both;'/>

You can add a b:section tag anywhere between <body> and </body> in your blogger blog. See the table below to know about the b:section tag and its attributes;

Elementdescription
<b:sectionb:section tag indicates the place or section to add widget/gadget in the blogger blog.

For adding gadget this code is a must.

You can add this tag anywhere in between the body tag of your blogger template.

class=’newsectionclass’The class of a b:section tag. It is better to use a unique class of this.
id=’uniquesectionid’The id of the b:section tag and it must be a unique one. This is also handy if you want to add custom CSS code for it.
maxwidgets=’1′Indicates the number of gadgets or widgets can be used inside the section. Value starts from 1.

If you do not use this then you can as many gadgets in the section as you like.

showaddelement=’yes’Values of showadddelement are yes and no.

If it is set yes; then you will see Add a Gadget link in the layout tab of your Blogger blog’s dashboard.

If it is set no; then you will not see Add a Gadget link in the layout tab of Blogger dashboard.

Yes it is that simple; just add the b:section tag inside your template and you can add gadgets or widgets in that section of your blogger template. Remember before making any sort of customization in your Blogger template you should create a backup copy of it.

In below you will see some typical places where one might require to add gadgets section or edit existing gadget sections in the Blogger blog and how to add and customized them.

How to Add Widget Section Below the Post in Blogger

add widget section below post in Blogger

It’s great if you have a separate widget section just below or above the post widget in Blogger. After backing up your template;

    1. Go to Blogger dashboard > Template > click ‘Edit HTML’.
    2. Look for the following code;
      <b:section class='main' id='main' showaddelement='yes'>
    3. Just after closing the b:section main paste your new widget section codes like this;
      <b:section class='main' id='main' showaddelement='no'>
      <b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog'>...
      </b:widget>
      </b:section>
      <b:section class='main-bottom' id='main-bottom' showaddelement='yes'/>
    4. Click ‘Save template’.

If you want to add two widgets or section side by side then follow the instructions below;

add two widget section side by side below Blogger post

  1. At the step-3 in the above instructions paste two b:section tag like this;
    <b:section class='main' id='main' showaddelement='no'>
    <b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog'>...</b:widget>
    </b:section>
    <b:section class='main-bottom-left' id='main-bottom-left' showaddelement='yes'/>
    <b:section class='main-bottom-right' id='main-bottom-right' showaddelement='yes'/>
    <div style='clear: both;'/>
  2. Search for ]]></b:skin> in the template editor and Add following CSS code for displaying them side by side. Also you can add this in a style tag in your template too.
    #main-bottom-left {width:48%;float:left;display:inline;}
    #main-bottom-right {width:48%;float:right;display:inline;}
  3. Save the template.

Change the width in the CSS code until you get it right according to you template.

How to Add Widget Section Above the Post in Blogger

add widget section above post in Blogger

The codes and process is almost the same if you want to add one, two or more widget section. For this;

    1. Go to Blogger dashboard > Template > click ‘Edit HTML’.
    2. Look for the following code;
      <b:section class='main' id='main' showaddelement='no'>
    3. Paste you new b:section code just before it. Like this:-
      <b:section class='main-bottom-left' id='main-bottom-left' showaddelement='yes'/>
      <b:section class='main-bottom-right' id='main-bottom-right' showaddelement='yes'/>
      <div style='clear: both;'/>
      <b:section class="main" id="main" showaddelement="no">...</b:section>
    4. Click save template.

Here also if you want to add two widgets section side by side just above the post widget; then follow the instructions below;

add two widget section side by side above post in Blogger

  1. At the step-3 in the above instructions paste two b:section tag like this;
    <b:section class='main-top-left' id='main-top-left' showaddelement='yes'/>
    <b:section class='main-top-right' id='main-top-right' showaddelement='yes'/>
    <div style='clear: both;'/>
    <b:section class='main' id='main' showaddelement='no'>
    <b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog'>...</b:widget>
    </b:section>
  2. Search for ]]></b:skin> in the template editor and add the CSS code below just before it for displaying them side by side. You can also add this in a style tag in your template too.
    #main-top-left {width:48%;float:left;display:inline;}
    #main-top-right {width:48%;float:right;display:inline;}
  3. Save the template.

Adjust width in the CSS code until you get it right according to you template.

How to Add a gadget/widget section in the header of Blogger

split header section in Blogger to add widgets adsense unit search box

One of the great places to add ads or a search box is at the right side of your blog’s logo or name. For this you will need to add a new gadget/widget section in the Blogger template.

For this follow the instructions below;

    1. In the template look for this code;
      <b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
    2. Just after closing <b:section class='header' id='header' maxwidgets='1' showaddelement='no'> paste the following b:section tag like this;
      <b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
      <b:widget id='Header1' locked='true' title='blog demo blogger (Header)' type='Header'>...</b:widget>
      </b:section><b:section class='header-right' id='header-right' showaddelement='yes'/>
      <div style='clear: both;'/>
    3. Now search for ]]></b:skin> in the template and add the below CSS code just before it. You can also add this in a style tag in your template too.
      #header {width:50%;display:inline-block;float:left;}
      #header-right{width:40%;display:inline-block;float:right;}
    4. After this click ‘Save template’.

Adjust the widths in the CSS code according to your blog’s style and layout. Remember the main code for adding a new gadget/widget section is one that is give at the top. All you need to do is find where you want to add this code and how you want to customize it.

Hope this post helped you in customizing your Blogger template. If you need any help on this do mention it in the comments section.