How can I fix my broken website after a bad edit?

New Member
10 0 0

Hey all, 


Slightly panicked here... I was attempting to add a sticky header from this tutorial and I'm pretty sure I did something bad because my site now looks like this and I have no clue how to fix it.... 



Sorry guys, I accidentally deleted the ending carat... just a noob here carry on. 

Reply 1 (1)

Shopify Staff (Retired)
764 88 161

Hi, @eKing20


Ash here from the Shopify team. It’s great to hear that you were able to identify and resolve the issue!

Moving forward, I have some tips which can help prevent these types of stressful situations in the future. Whenever making code customizations on a theme, I suggest making a duplicate of your theme to use as a backup. Here
 is a link to our Help Center with some information on duplicating themes. When you duplicate a theme, the duplicate will appear in your list of themes in Online Store> Themes as “copy of (theme name)”. You can then publish that theme, or use it as a point of reference to see what the code looked like prior to customizations. 


Another handy tip is knowing how to roll back sections of code that have had changes made to them. In this help document here, you can find information on editing your theme code, as well as reverting sections back to older versions. When reverting sections of a themes code, a drop-down menu shows the date and time for each save that you've previously made, including the original version. 


Let me know if you have any questions about the above processes, or would like any additional assistance or tips.

To learn more visit the Shopify Help Center or the Community Blog.