How to Restore Lost Blogger Template Code

Have you ever lost your Blogger template partly or fully due to some unforeseen error? It happened to me once and half of my blog disappeared. For some reason, only half the blog code was left due to some republishing error.

So I had the main panel displaying, but only half the sidebar and footer were gone. Upon checking the template, that part had just disappeared and there was no chance that it would show on the blog.

Save whatever customization was left…

If you have a partially running template, save it in a text editor like Notepad. This will at least give you back all the customizations you made of whatever is left like altering text, css colors, padding, Adsense placement, feed buttons, search codes, anti pixel buttons, etc.

This can also be done by viewing the source of the blog and saving it to Notepad. Now you can copy and add these previous customizations to your new code. Do all this preservation measures before changing and republishing the new template.

If you have nothing left and no back up also…

See if you are indexed in Google, and try to get the last google cache of your page. Just type in your full URL in Google and search. In the items lists below, see “Show Google Cache” – and the last time Google visited your page, its image will be displayed. Just view source and your get most of your code back. If your blog was recently indexed, then you are more lucky to have your latest source code back.

If Google does not have you listed…

Then maybe the Internet Archive Wayback Machine has it. Just enter your URL and find your sites listed by different dates and get the latest source code. The older your blog is, the higher the chance you might find it there. This also allows you to get the source code by date too.

Quick Fix any severely disabled blog…

The only way to fix your blog and keep it running it (if you do not have back up) is to pick a new template. Go to Template > Pick New. Then choose from the long array of free blogger templates, select and republish the entire blog. The new template will come into play but all customization you did previously to your template is lost.

So how to keep your template safe always…

Back up the template whenever you change it. It is very simple. Just copy the entire template code into Notepad and save the file with a name like ‘myblog-date.txt’. Do this before you make any changes to the template, save or republish it. This way I have a collection of all templates by date and I can restore to whichever date I want. Even if you manage to mess up the new code, you can always go back. See more ways to Backup Your Blogger Blog.

Back up is very important. If you have done hundreds of customizations over months, it is very difficult, time-consuming and hard work to restore all those changes. Believe me.. I have gone through it. Is it not simple to just save a copy of that template today!


  1. Cellounge Admin says:

    What I recommend is to go to the blogger template, copy and paste it into a text file and save it to a floppy disk. This way it will not be on your machine.

  2. Marti says:

    Or save it as a text file or word document, and upload it to a “My Yahoo” briefcase.

    It’s free, there is a LOT of space there, and easy to upload. I’ve uploaded my ENTIRE hard disk to two “My Yahoo” accounts.

    If my machine ever crashes, (which it has, and sooner or later, everyone’s will) everything is stored away from here, easy to get to, easy to reload to a new drive.

    I’ve made a habit of adding any new files once a week.

    It’s a “good thing” LOL

  3. dan says:

    My blog,, lost half the coding one day, for no apparent reason. The links for the archived pages were still live, however. I opened one up, and my designer friend was able to copy the original source code from that back into me template. I still don’t know why it happened in the first place, though.

  4. Snam23 says:

    Help! I lost my blog’s widgets’ confirmation when I tried to change blog templates! I have a cached page of it by Google right in front of me. I tried copying and pasting the source but I get an error in blogger when I tried to changed my template. How do I use the code to get my blog back?!?!?! Please help!

    I get this error from blogger: Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
    XML error message: The reference to entity “strip” must end with the ‘;’ delimiter.

  5. julie Roberts says:

    I restored my blog by following your directions. Thanks
    I think there was too much code there. Should it have all my blog postings in the code? Now when I click on almost any link in my list of postings on the sidebar, it defaults to my last posting. How do I know which code to take out.
    I would appreciate any help on this. if you go to my blog you will see what I mean.

  6. julie Roberts says:

    Also I now can’t even edit the blog or add new gadgets. Help

  7. Diff.thinkr says:

    Dont forget to save each HTML and other custom widgets that you added along with any script. They will not be saved automatically as far as I know.

  8. berbagi info says:

    thanks for the information is, but it can not return to original form
    try you look at my blog at htt:

  9. tipsntricks says:

    I lost my google verification code. Is there any way to get it, and where can I find it?

  10. Mathivanan says:

    I have lost my blogger template and I got the cached source code. If I copy and paste the same, will all my customization be restored. Please reply urgently as I am under verification by adsense

  11. عشاق التقنية says:

    I have lost my blogger template and I got the cached source code

Leave a Reply

Your email address will not be published. Required fields are marked *