Monday 12 October 2009

Changing Templates without Loosing Widgets[Blogger]


Like one day,you are surfing Internet And found a good template design for your blogger and decided to change your template.When you change your Template Blogger said that all the Widget along with their data will be lost when changing to a third-party template.
Could you afford to lose that???...

I thing is you One-by-one backup your widget,and then again restore it.Belive me it would be a task to do.

OR you can backup your CSS widget code and apply it at once.
Steps:
1.Login to your Dashboard then,Layout-> Edit HTML then click on Expand Widget Template check box..

2. search for.<b:widget  In the template code and and copy all widget code...
Ex.

<div id='sidebar-wrapper'>
<b:section class='sidebar' id='sidebar' preferred='yes'>
<b:widget id='HTML1' locked='false' title='Search this Blog' type='HTML'>
<b:includable id='main'>
<!-- only display title if it's non-empty -->
<b:if cond='data:title != &quot;&quot;'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>

<b:include name='quickedit'/>
</b:includable>
</b:widget>
<b:widget id='LinkList1' locked='false' title='Recent Posts' type='LinkList'>
<b:includable id='main'>

<b:if cond='data:title'><h2><data:title/></h2></b:if>
<div class='widget-content'>
<ul>
...

Do it as many times as needed to copy all the widgets. Paste them one after to other in Notepad
No need to copy these:
  • <b:widget id='Header1' locked='true' title='For Testing Purpose (Header)' type='Header'>
  • <b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog'>
3. Now copy the new template code by opening the XML file in another Notepad. Paste it in Blogger deleting the old template code.
4.Find the following line in the newly pasted template code:
...
<div id='sidebar-wrapper'>
<b:section class='sidebar' id='sidebar' preferred='yes'>

No comments:

Post a Comment