I messed up my theme-scrips.liquid file on a custom theme

I was trying to fix a script and ended up messing up my home page. I fixed the bug but unfortunately, I didn’t preview the homepage before I pressed save. There are supposed to be pictures with the collection titles and not a big gap down to the footer. Any help would be a blessing.

https://bubbasgeneralstore.com/

Password: 2023EDIT!

Hey @Statikk ,

Shopify knows that errors are just human nature, so we have provided a way to undo changes made to a code file in your theme over time. My first suggestion is to try rolling back your .liquid files individually to a time and date before you made the changes.

  • From your Shopify admin, go to Online Store > Themes.

  • Find the theme you want to edit, and then click Edit code.

  • Click on one of the files under the relevant folder in which you want to undo changes.

  • Click Older Versions next to the file name

  • Click the drop-down menu to select an older version. Clicking a date stamp will roll the code back to that saved version. If you remember when you made the changes, you can return to the state of the file before your changes.

  • If you remember when you made the changes, you can return to the state of the file before your changes. Finally, don’t forget to hit that green save button!

TIP: We always suggest you first duplicate the theme and work in the duplicate. That way you can always go back to your previous version.

1 Like

Thank you so much!

Don’t hesitate to reach back out if you require any further assistance as you continue to work on your store.

All the best,