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

Killer WhatsApp Tricks That You Should Know

WhatsApp has become the best messenger for mobile platform. Not only it is available for every mobile platform but also it is the most used app in these platforms too. The popularity of WhatsApp has grown so much popular that many WhatsApp tricks are coming to internet and many users are searching for these amazing WhatsApp hacks to use in their phone and amaze their friends.  So, here we go: 1. Disable WhatsApp Auto Image Download Though earlier, WhatsApp plus app was required to stop automatic downloading of images, videos and audio files but now, WhatsApp has added this option to its settings. So, you can control automatic media files downloading. Just navigate to More > Settings > Chat Settings > Media auto-download  Check suitable option at ‘When using mobile data’, ‘When connected’ on Wi-Fi’ and ‘When Roaming’. 2. Hide WhatsApp Last Seen Last seen timestamp is great feature but the feature comes out to be really very annoying because i...

How To Remove Powered By Blogger Attribution

Blogger is the most popular blogging platform. However, its Templates contains an official Attribution which shows that the blog is the product of Blogger.

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.