I messed up the code

I messed up the code

whimsimoth
Visitor
3 0 0

I was trying to change the text to white on my product pages (please bare with me in so new to this!!) I probly shouldn't have been messing around with the code but I did and I pasted this in the "layout/theme.liquid" section 

Screenshot_20250127_204625_Chrome.jpg

 I deleted it when I saw that it didn't work. It changed the font and had a banner at the top of my shop. When I deleted it it dissappeard but now my site looks out of proportion. Everything is too big or too small (not how it was before) now I'm freaking out haha becuase I don't know how to get it back to looking normal. This is how it looks now but I don't have a photo of before. 

Screenshot_20250127_205232_Shopify.jpg

Replies 3 (3)

TheScriptFlow
Shopify Partner
729 52 98

Please share your store url and p/m me so that I provide you solution code.

Because it need to take a look on your theme file.

- Need a Shopify Specialist? Chat on WhatsApp+447828078063 Or Email at info@thescriptflow.com

- Boost Your Sales with Affiliate Marketing - UpPromote: Affiliate & Referral


- If my solution was helpful, mark it as a solution and hit the like button! And Wait Don't forget to Buy me a Coffee

whimsimoth
Visitor
3 0 0

Hi thankyou, I've actually sorted it out now. Think I just panicked but all I needed to do was revert it back and save. 

PaulNewton
Shopify Partner
7746 679 1614

‌‌‌‌⚠💣 Always backup themes before changing files 💣⚠‌

That includes before trying the below rollback method.

 

Hi @whimsimoth try a file rollback for theme.liquid:

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


If you need this theme repair services then contact me.
Contact info in forum signature.
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