Open up the blog template in Design -> Edit HTML mode and save a copy of your template with the Download Full Template link, this will let you back track if something goes wrong. Next, make sure the Expand Widget Templates box is Not Checked. Now search for <div class='region-inner header-inner'>. Below should be section that looks like this:
<b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
<b:widget id='Header1' locked='false' title='Your Blog Title (Header)' type='Header'/>
</b:section>
That code is responsible for the header section in Design->Layout. Let's add another section along side to fill the wasted space. First, replace the code above from <b:section through </b:section> with this:
<div class='header-column-left'>The above places two sections in the header, but they need styles to sit side by side instead of stacking. Search the template html for /* Header and place the following lines after the ---- */.
<b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
<b:widget id='Header1' locked='false' title='Your Blog Title (Header)' type='Header'/>
</b:section>
</div>
<div class='header-column-right'>
<b:section class='header' id='header2' maxwidgets='1' showaddelement='yes'>
</b:section>
</div>
<div class='clear'/>
.header-column-left { float: left; width: 50%;}Now, we need to finish by making the template work properly in Page Elements. Search for </b:template-skin> and insert these styles two lines above:
.header-column-right { float: right; width: 40%;}
#layout .header-column-left {float: left;width: 50%; }Preview the changes and make sure everything looks ok. If the preview looks totally wrong, Clear Edits and start over. Otherwise, Save Template and switch to Design->Page Elements. The template should now have a box in the upper right waiting for content to fill that empty space.
#layout .header-column-right {float: right;width: 40%; }
Further Customization
It's pretty easy to add a new content section into a header, however depending on the template some things may look a little different. Also, this is a very generic solution and may require tweaking depending on the design. This site for instance uses custom column widths and backgrounds. In future updates I'll talk further about header customization, so check back regularly for more.
3 comments :
Every Thins is okey But the Header Left is not setting on the Left side. Yet The Right is Set on the Right Side. Please assist me. I did as per the instructions in this blog.
I need a link to debug from. My guess is there's a style applied to center the header section which is taking precedence somewhere, though that's only a guess having not seen the code.
i have try your tutor, but that's tutor not working, my header blogger not split into 2 section, can you help me?
please email me at : rio_1982_0510@yahoo.com
i try at http://satrioasikin.blogspot.com/
regards
Rio
regards
Post a Comment