Back Up Your Template: View Source Print ?
Back Up Your Template: View Source Print ?
It is
sometimes mistakenly addressed a page element. In Design > Page Elements tab,
you can identify a section by the presence of an Add A Gadget link.
To add a widget, simply click the Add A Gadget link in your preferred location and
proceed with selecting a widget. But what if your preferred location doesnt have an
Add A Gadget link? In other words there is no widget container there.
Well we can always make one, by adding a section tag in template HTML. Here is
the code:
view sourceprint?
1 <!-- New widgets container Start -->
2 <b:section class='NewContainer' id='NewC
ontainer'/>
3 <!-- New widgets container End -->
6.
</div>
Paste the section code right below the header code, like this:
1<div id='header-wrapper'>
<b:section class='header' id=
'header' maxwidgets='1'showad
delement='no'>
3 <b:widget id='Header1' locked='true' title=Your Blog
Title(Header)' type='Header'/>
4 </b:section>
5 </div>
<!-- New
widgets
6
container
Start -->
7 <b:section class='NewContainer' id='NewContainer'/>
8 <!-- New widgets container End -->
10.
11.
Go to Design > Page Elements to view the result. You should see a newly
added section under the header.
12.
Now you can add all the widgets you want into the new container.
13.
To style the section, you simply add a styling rule in CSS, like this:
view sourceprint?
1 #NewContainer {
/* add styling
2 declarations here
*/
3
14.
<div id='headerwrapper'>
2 <b:section class='header' id='header' maxwidgets
='1'showaddelement='no'>
3 <b:widget id='Header1' locked='true' title=Your
Blog Title(Header)' type='Header'/>
</b:section
4
>
5 </div>
<!-- New widgets container
6
Start -->
7 <b:section class='NewContainer' id='NewCo
ntainer'/>
<!-- New widgets container
8
End -->
Gadget/Javascript
<!-- Dropdown menu Start -->
<div id="menu">
<ul class="level1">
<li class="level1-li"><a class="level1-a" href="#url">Home</a></li>
<li class="level1-li"><a class="level1-a fly" href="#url">Contact Us<!--[if
gte IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul class="level2">
<li><a href="#url">Email</a></li>
<li><a href="#url">Telephone</a></li>
<li><a href="#url">Online Form</a></li>
<li><a href="#url">Snail Mail Address</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]--></li>
<li class="level1-li"><a class="level1-a fly" href="#url">Resort<!--[if gte
IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul class="level2">
<li><a href="#url">Ski Hire Facilities</a></li>
<li><a class="fly" href="#url">Main Ski Slopes<!--[if gte IE 7]><!-></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul class="level3">
<li><a href="#url">Beginners Slopes</a></li>
<li><a href="#url">Intermediate Slopes</a></li>
<li><a class="fly" href="#url">Advanced Skill Levels<!--[if gte IE 7]><!-></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul class="level4">
<li><a href="#url">Local</a></li>
<li><a href="#url">Nearby</a></li>
<li><a href="#url">With instructor</a></li>
<li><a href="#url">Snow boarding</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]--></li>
<li><a href="#url">Expert</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]--></li>
<li><a href="#url">Night Life</a></li>
<li><a class="fly" href="#url">Restaurants<!--[if gte IE 7]><!--></a><!--<!
[endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul class="level3">
<li><a href="#url">Snow Hotel</a></li>
<li><a href="#url">The Snowman</a></li>
<li><a href="#url">Ice Cavern</a></li>
<li><a href="#url">Ski Inn</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]--></li>
<li><a class="fly" href="#url">Car Hire<!--[if gte IE 7]><!--></a><!--<!
[endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul class="level3">
<li><a href="#url">From Airport</a></li>
<li><a href="#url">In Resort</a></li>
<li><a href="#url">Multiple Resorts</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]--></li>
</ul>
<div id='header-wrapper'>
<b:section class='header' id='header' maxwidgets='1'showaddelement='no'>
<b:widget id='Header1' locked='true' title=Your Blog
Title(Header)' type='Header'/>
</b:section>
</div>
<!-- New widgets container Start -->
<b:section class='NewContainer' id='NewContainer'/>
<!-- New widgets container End -->
#NewContainer {
/* add styling declarations here */
}
]]></b:skin>