Roll back to an older version of your theme
If you've changed theme files and need to revert them, you can roll back .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 Actions > Edit code.
From the Shopify app, tap Store.
In the Sales channels section, tap Online Store.
Tap Manage themes.
Find the theme you want to edit, and then click Actions > Edit code.
From the Shopify app, tap Store.
In the Sales channels section, tap Online Store.
Tap Manage themes.
Find the theme you want to edit, and then click Actions > Edit code.
-
Under the Templates header, click into one of the .liquid files you have edited recently.

-
Click Older versions next to the
.liquidfile name
-
Click the drop-down menu to select an older version. Clicking a datestamp will roll the code back to that saved version.

(optional) Click Preview and see if the error was fixed.