Skip to main content

Add A Gadget On The Right Side Of Blogger Header

A header consists of every single part that appears at the top of your blog. Adding a gadget at the right side of the header is a very good tactic to display ads, social media buttons or a search box besides your blog's title.

So today's tutorial is based on how to correctly split the Blogger header in two parts so you can add any widget besides your blog's title.

Normally we often add a 468*60 size banner to the right side and we therefore need a widget section for it. This trick has already been published on many major blogging sites but Blogger has recently changed the code of their blogger blogs and hence, some tutorials on the web are now out-dated. So lets start the good work:


How to Implement:

1. Go to your blogger dashboard >> Template >> Edit HTML

2. Find the following piece of code: (Press Ctrl+F and copy the below code in the box & press enter)

<a expr:href='data:blog.homepageUrl'><data:title/></a>

Once you find the above code, you will see something like this:

<a expr:href='data:blog.homepageUrl'><data:title/></a>
  </b:if>
</b:includable>
        </b:widget>
      </b:section>
    </div>
    </div>

3. Paste the following code between </b:section> and </div>

<b:section id='header-right' showaddelement='yes'/>
<div style='clear: both;'/>

So the final code will look something like this:

<a expr:href='data:blog.homepageUrl'><data:title/></a>
  </b:if>
</b:includable>
        </b:widget>
      </b:section>
<b:section id='header-right' showaddelement='yes'/>
<div style='clear: both;'/>
    </div>
    </div>

We have successfully added a new section. Now we need the widget to appear besides your blog's title (right-oriented). We will achieve this with the help of CSS.

4. Copy the following code and place it before ]]></b:skin>

#header, body#layout #header {width:50%;display:inline-block;float:left;}
#header-right, body#layout #header-right {width:35%;display:inline-block;float:right;padding:15px;}
#header-right .widget {margin:0;}

5. Hit Save template, you're almost done! Now go to your blogger dashboard >> Layout and simply drag the widget you want besides the header (In Layout, it may look like your widget is below the header but when you open your blog, it will appear in the right place)  >> click Save arrangement. You're done!


So this tutorial was all about how to split the header in two parts. I hope, this tutorial is easy to implement, if you still having some queries then feel free to comment below. Thanks :)

Comments

  1. I put it on my blog!
    Little did I changed the dimensions and I am very happy.
    View: http://zezamix.blogspot.com/

    Thank You very much :)

    ReplyDelete
  2. I did all of this and the gadget i placed was under the header and not on the right side :((

    ReplyDelete
    Replies
    1. In the layout section it will appear below the header but It will appear on the right side of your blog.

      Delete
  3. Thanks for this, I tried it and it worked...but there was a side effect
    I have a page list underneath my header, which is a page width navigation bar with a number of page links on it. After I applied your code, the page list worked in safari & IE & Chrome, but in Firefox the page list is aligned to the right under the other gadget...
    Is there any way to have the right aligned widget and then follow it with a full page width widget that works on Firefox?

    ReplyDelete
    Replies
    1. What is your site URL? Let me have a look first :)

      Delete
  4. Superb !!! It's working thank you....

    ReplyDelete
  5. thnak you so much i had searching this tutorial 2 weeks but its here i have found today
    thanks Deep Ak

    ReplyDelete
  6. thanks a lot ..............................................

    ReplyDelete
  7. Can i add header right widget in custom template in blogger which has no option to add widget......................??

    ReplyDelete
  8. It is not working. Please give another tips

    ReplyDelete

Post a Comment

Popular posts from this blog

How To Remove "Read More" Link In Blogger

"Read More" option makes your blog more professional, but some expert says, it affects your blog's page rank. So here's a short tutorial on how to remove that link.

How To Download YouTube Playlists as MP3 and MP4

Ever since YouTube had become one of the prominent platform of publicizing media, let it be songs, films or trailers, people were enthusiastic to download these videos and store them in device so that they can enjoy those videos without accessing YouTube.

How To Contact Facebook Directly?

As you’ve probably figured out by now, it’s not easy to find out how to contact Facebook about your specific problem. I always start in the Help Center and then typically proceed to Something’s Not Working. From there, sometimes Facebook gives you a form you can fill out to contact them about your specific problem. More often than not, though, they send you on a scavenger hunt. Facebook holds a big amount of our personal stuff. So, leaking out of these data can possibly hurt our reputation and if someone will gain access to our Facebook account then he/she can do a lot of harm to us and we might need to get direct contact with Facebook team and get their assistance. There could be many other situations, when you might need to contact Facebook such as, if someone spamming your profile, if your profile deactivated, if you want report an infraction, request permanent deletion of your account etc. So, here are the email addresses, phone number and postal address by which you