Step 1:
When you go to Page Elements/Layout, you will see boxes where you can 'Add a Gadget'. Those are sections (not technically, but for the sake of simplicity, just assume it is). You can generally split a section, but splitting in two is not the aim of this tutorial, as your header will be half the width of your entire header. That's not what we want.
We want the header to be intact. So, we need to measure the width of the unused space. You can use various methods to measure the width of your unused space:
When you go to Page Elements/Layout, you will see boxes where you can 'Add a Gadget'. Those are sections (not technically, but for the sake of simplicity, just assume it is). You can generally split a section, but splitting in two is not the aim of this tutorial, as your header will be half the width of your entire header. That's not what we want.
We want the header to be intact. So, we need to measure the width of the unused space. You can use various methods to measure the width of your unused space:
- Use an add-on called MeasureIt. If you're using Firefox for this tutorial, I suggest you get this add-on.
- You can use FireBug to see the width of the surrounding elements and then estimate the width of your unused space.
- Trial and error. Use a value, preview and see if it's fine. Then use another one, and keep doing it till you're satisfied with the results.
Step 2:
If you're using the old Blogger interface: Go to Dashboard - Design - Edit HTML - Back Up (Download Full Template) -
If you're using the new Blogger interface: Go to Dashboard - Template - Backup/Restore - Download Full Template - Close - Edit HTML - Proceed -
Find for these lines:
If you're using the old Blogger interface: Go to Dashboard - Design - Edit HTML - Back Up (Download Full Template) -
If you're using the new Blogger interface: Go to Dashboard - Template - Backup/Restore - Download Full Template - Close - Edit HTML - Proceed -
Find for these lines:
<b:section class='header' id='header' maxwidgets='1' showaddelement='no'> <b:widget id='Header1' locked='true' title='Test Blog 18 (Header)' type='Header'> <b:includable id='main'>…</b:includable> <b:includable id='description'>…</b:includable> <b:includable id='title'>…</b:includable> </b:widget> </b:section>Note: The 'title' attribute in this line will be different in your template. Don't worry about it, just delete these lines.
Step 3:
Paste the following line directly above the lines found in Step 2:
And then, insert the following line directly below the lines found in Step 2:
This is what the final code should look like after the two additions above:
Paste the following line directly above the lines found in Step 2:
<table><tr><td>You have to insert the width of your unused space in line 5 above. Change 310px to the value that you've gotten in Step 1. Click on Save Template once you're done.
And then, insert the following line directly below the lines found in Step 2:
</td> <td style="width: 310px;"> <b:section class='header' id='header2' maxwidgets='1' showaddelement='yes'/> </td></tr></table>You have to insert the width of your unused space in line 2 above. Change 310px to the value that you've gotten in Step 1. Click on Save Template once you're done.
This is what the final code should look like after the two additions above:
<table><tr><td> <b:section class='header' id='header' maxwidgets='1' showaddelement='no'> <b:widget id='Header1' locked='true' title='Test Blog 18 (Header)' type='Header'> <b:includable id='main'>…</b:includable> <b:includable id='description'>…</b:includable> <b:includable id='title'>…</b:includable> </b:widget> </b:section> </td> <td style="width: 310px;"> <b:section class='header' id='header2' maxwidgets='1' showaddelement='yes'/> </td></tr></table>
worked like a charm! much thanks!
ReplyDeleteariel.s: Glad you like it. Cheers.
ReplyDeleteBrilliant tip, Yoboy! It was a question I was planning to ask at some point in the future, when the opportunity to use that space arose.
ReplyDeleteCheers.
Thanks Trebor. If you have any particular tweak or trick that you want to achieve and you're not sure how, don't wait for the future, ask it now.
ReplyDeleteRegards.
It was nice I created my own template using it
ReplyDelete@Tutors: Looking good. Thanks for the feedback.
ReplyDeleteRegards.
Well, I've just tried it and it works fine. However, I would have preferred it if it was aligned in exactly the same area as my right-hand side gadgets. Also, I've messed around with the widths and I can't get it to the very end of the right-hand side of the screen (like the gadgets).
ReplyDeleteAny way of doing this?
@Trebor: Yes you can place your new gadget far to the right of your header and align it with your sidebar. Go to Dashboard - Design - Template Designer - Advanced - Add CSS - paste the following code - Press enter after the last character of the last line } - Apply to Blog:
ReplyDelete#header2{
position: relative;
left: 200px;
}
Adjust the value 200 accordingly. Regards.
Perfect! Now I can control both the left-hand and right-hand sides, I'm good to go!
ReplyDeleteMany thanks for your help! :-)
@Trebor: Glad you asked by the way. I'm sure it will be helpful for those who try this tweak. And glad you got it working :)
ReplyDeleteRegards.
Hi Yoboy,
ReplyDeleteI'm getting the 'laptop symdrome' again - after adding the code, the header briefly flashes then disappears. I've since reverted the code back to how it was originally, and checked on the same laptop, and the header is now okay.
Any idea why this is happening?
@Trebor: I'm not sure what happened. Perhaps if you leave the header as it is, I could check and see what's up.
ReplyDeleteRegards.
Yoboy,
ReplyDeleteI've just changed it back to how it was before I noticed the problem.
Many thanks.
Is it possible to utilize the space in the section where the title resides without messing with the description width?
ReplyDeleteI like the width of my description, but would like to use the space to the right of the title only.
Thank you.
@Deb: It is possible, but not via the method in this post. Although it is something similar. The steps:
ReplyDelete1) Go to Dashboard - Design - Page Elements - Add the gadget that you wanna add, but in your sidebar first.
2) Identify the the Gadget's ID.
3) Go to Edit HTML, Find the entire div tag for the gadget (using the ID) and the div tag for the blog's title.
4) Place these two div tags in a table.
Well, that's the idea. Deb, email me if you want to get this done.
Cheers.
@Deb: It is possible, but not via the method in this post. Although it is something similar. The steps:
ReplyDelete1) Go to Dashboard - Design - Page Elements - Add the gadget that you wanna add, but in your sidebar first.
2) Identify the the Gadget's ID.
3) Go to Edit HTML, Find the entire div tag for the gadget (using the ID) and the div tag for the blog's title.
4) Place these two div tags in a table.
Well, that's the idea. Deb, email me if you want to get this done.
Cheers.
hai yoga, iam using firefox, and also installed the addon measureit, but dont know how to measure the length of unused space. can u pls explain this?
ReplyDelete@rajkumar: When you've installed measureit, you'll see a ruler kind of icon, somewhere near the bottom of your Firefox. Click on it, and you'll be able to click and drag on anything on your pageview, and measureit. Alternatively, you could just use a random value like 200px, then see how it goes in your preview, then adjust accordingly from that value.
ReplyDeleteCheers.
awsome, thankx soo much for this trick, I really appreciate it....... I have a question, could you please tell me how to add google+1 button to wordpress.com blog...... I really need that.... please help........
ReplyDeletemy blog www.thebloggingtutorial.blogspot.com
@Wasif: I haven't got a clue. I've never had a wordpress account, and probably never will. Sorrt mate, can't help much on this one.
ReplyDeletehey dear its very good, but after made dis one i noticed that my header1 and 2 not showing in internet explorer.
ReplyDeletewe can see in firefox,crome. why its happening like dis? cud u plz check dis issue?
thanks
@Aswin: Hi there. What's your blog's address?
ReplyDeleteIs it possible to do this with dynamic views? For instance, www.letsridebikes.ca, can I have a gallery or video bar showing in my header, where the hidden search box would be?
ReplyDeleteUnfortunately nope - at least not until the HTML/Javascript gadget becomes available for Dynamic View templates..
DeleteThe same as the above question. Does it make a difference if you have your own host? Can you make a field for html/javascript in the header section of dynamic view templates that is stored somewhere else (i.e.: not in Blogger)?
ReplyDeleteDV templates are never meant to support modifications. I'm afraid any attempt to introduce hardcoded HTML anywhere in your template is just gonna result in your template being broken at one point of time.
DeleteHi, I have manage to add a widget, more or less as you've described, but the new widget refuses to display next to the header - it gets added to the sidebar instead. Any ideas?
ReplyDeleteRobert
An old one this is - not sure if it'll still work though. Can I have a look at what you're working on at the moment? It'll be easier for me to help you that way.
DeleteIt's a fairly standard dynamic views site: http://f-j-p.com I'd like to add a widget to the right of the header. Your changes resulted in a new "add widget" area appearing in the layout window, but when I added an image to it, it just displayed in the sidebar.
ReplyDeleteI'm afraid DV templates aren't very customisable. The walkthrough above was meant for non-DV templates.
Delete