We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

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

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

Keving94
Visitor
1 0 0

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.

 

👉 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 🙏

Thanks in advance!

 

teramask.com is my website

Replies 2 (2)

ProtoMan44
Shopify Partner
772 60 115

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

- A thirsty developer passionate about supporting the community. If you'd like to, you can  

Buy me a Coffee.


- Your Shopify Solution Specialist Get a Quote at

ProtoMan44

 - 

Chat On Whatsapp


Crafting exceptional e-commerce experiences to elevate your online presence. Let's build your success story together!

PaulNewton
Shopify Partner
8031 687 1647

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

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

 

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 ⬇ ⬇ ⬇.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

 

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org