Losing our widgets is the most common problem we encounter at the time of uploading a new template. Is there a way of installing a new template without having to get rid of our beloved (and sometimes unnecessary) widgets? The answer is yes, and it’s quite simple. :D
Explanation
From our Template Editor (Layout> Edit HTML), without checking the “Expand widget templates” box, we must look for this code:
<b:section class='sidebar' id='sidebar' preferred='yes'>
Right below that line, we will find our template widgets; something like this:
<b:widget id='BlogArchive1' locked='false' title='Archivo del blog' type='BlogArchive'/> <b:widget id='Profile1' locked='false' title='Datos personales' type='Profile'/>
We have to copy these widgets and keep them save, wherever. After we’ve saved them, we upload our new template. Blogger will warn us that our widgets are going to be deleted. We do NOT continue; we go to the same code where we took our widgets from:
<b:section class='sidebar' id='sidebar' preferred='yes'>
And paste the widgets we copied, right after the line above, and before </b:section>. In the end, the whole code should look like this:
<b:section class=''sidebar' id='sidebar' preferred='yes'> <b:widget id='BlogArchive1' locked='false' title='Archivo del blog' type='BlogArchive'/> <b:widget id='Profile1' locked='false' title='Datos personales' type='Profile'/> </b:section>
That’s it!