Thursday, 19 February 2009

How to Add a Widget in The Header Template Blogspot

Free blogger templates available on the internet many times does not have the option to add a widget at the top under the header. This is actually due to have restrictions on the XML that is created by the creator of the template. The reason for this may be limited in order to display the template in accordance with the author desires.

Sometimes we just want to add the widget at the top, able to install or add adsense link model horizontal menu. Some friends ask this because when you want to install a horizontal menu in the ateonsoft.com not caused this. How is the solution? Change the template?

In the study do not easily ngeblog despair, in overcoming this problem does not need to change the template, the template may be because you use a template at this time is your pet. To add it just needs simple steps below:

<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>

I explain a little about the XML that I value his red above.
maxwidgets The maximum number of widgets of the "section" is, in this case is section or section header.

showaddelement
On page elements are usually at each "section" is the "add widget". This command to set whether the addition of widgets on the section is allowed or not.


locked
Set whether the widget is locked or not. If the widget is not locked can be moved with a "drag and droup", and will usually look the other ordinary widget. If it is not locked then vice versa.



I think the explanation is quite clear, and again on how to add header widget, please change your code above you as you wish. For example as below:

<b:section class='header' id='header' maxwidgets='3' showaddelement='yes'>
<b:widget id='Header1' locked='false' title='your blog title (Header)' type='Header'/>
</b:section>

Number of maxwidgets can be set as you wish, or if you want without setting at all just remove the settings as below:

<b:section class='header' id='header'>
<b:widget id='Header1' title='your blog title (Header)' type='Header'/>
</b:section>

To see what effect the code conversion, please go to page elements and see whether in the header can be added is a new widget.

Hopefully useful.

0 comments:

  © Blogger templates The Professional Template by Ourblogtemplates.com 2008

Back to TOP