How to restore a corrupted theme after deleting a code piece?

Gemmy
Visitor
1 0 0

Hello, 

I accidentally deleted a piece of code in the theme, so the theme is corrupted, now how do I restore that theme as it was?

Replies 2 (2)

Sajat
Shopify Partner
195 19 34

Hi there, if you have some idea on what kind of codes you deleted, you can fresh install the theme in another test store, view the codes there and copy paste those codes.

If you need extra help, please inbox me.

Mgroup
Shopify Partner
38 7 11

Hello,

If you know the file, where you deleted a part of code, you can try to restore it with backup file.

Choose "Edit Code" on your theme, search the file where your code was deleted-> open it and choose the previous version. Little presentation bellow:

1.

Screenshot 2022-06-02 at 17.12.49.png

2.

Screenshot 2022-06-02 at 17.15.36.png

3.

Screenshot 2022-06-02 at 17.18.23.png

 

I hope it will help you.

Thanks,
Mgroup Development