How Do I Revert My Site to an Earlier Version After Editing Code? (Using GemPages + Horizon Theme)

Topic summary

A user edited code in Shopify’s “Edit Code” section while building their site with GemPages and the Horizon theme. This caused the header layout to break and the cart icon to become missing or misaligned on both mobile and desktop.

Attempted fixes that failed:

  • Reverting edited files to older versions via Shopify’s code editor dropdown
  • Rebuilding header sections in GemPages
  • Clearing cache and republishing

Key responses:

  • One commenter suggests the GemPages code may have been overwritten
  • Another explains that Shopify only supports file rollback for non-asset files, linking to official documentation
  • Without a pre-existing backup or theme duplicate made before the changes, the only options are to reinstall and reconfigure the theme from scratch or hire someone to repair it

Current status: The issue remains unresolved after days of troubleshooting. The user is seeking a way to fully restore the theme to its pre-edit state.

Summarized with AI on October 26. AI used: claude-sonnet-4-5-20250929.

Hi everyone,

I’ve been building my site using GemPages with the Horizon Shopify theme. I only use Shopify itself for hosting products, processing payments, and settings — all of my design work is done inside GemPages.

The issue started when I decided to go into the Shopify “Edit Code” section to try and make some small custom changes. After I did that, my header layout broke, and the cart icon is either missing or misaligned across mobile and desktop. I didn’t realize something I touched there would impact the rest of the layout, but now the whole thing is thrown off.

I’ve tried:

  • Reverting the files I edited to older versions using the dropdown in Shopify’s code editor.

  • Rebuilding parts of the header in GemPages.

  • Clearing cache, previewing, republishing.

But nothing has worked. I feel like I’ve broken something in the theme’s core setup, and it’s now been days of trial and error. I was pointed here by someone who said this is the best place to ask for help.

:backhand_index_pointing_right: Is there any way to fully restore my theme to how it was before I made these code edits — kind of like a reset or rollback to a working state?

Any help would truly mean a lot :folded_hands:

Thanks in advance!

teramask.com is my website

@Keving94 , hey, thanks for posting here.
I think you have overwritten the GEMPAGE code.

Hi @Keving94 :waving_hand: there is only file rollback for non-assets

https://help.shopify.com/en/manual/online-store/themes/theme-structure/extend/edit-theme-code#roll-back

For anything else you’d need to restore a backup or duplicate made before any changes.

No backup means no backup and the theme needs to just reinstalled and resetup, or fixed.

Generally fixing is aided by having some sort of initial copy of the theme even if long ago.

If you need a theme repaired then contact me for services.
Contact info in forum signature below :down_arrow: :down_arrow: :down_arrow:.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.