A user accidentally broke their Shopify store while attempting to fix a text color issue by editing theme.scss.liquid. The main problem was a base-level CSS error (“Base-level rules cannot contain the parent-referencing-selector ‘&’ at 2974”).
Initial Issue:
Text color conflict on account/login pages needed fixing
User applied a suggested fix from another forum without coding experience
What Went Wrong:
CSS code was mistakenly pasted into the JavaScript file (theme.js or theme.js.liquid)
This broke site-wide functionality, particularly menus and product pages
Partial Solution Provided:
A responder suggested adding CSS code to fix link colors:
form a {
color: inherit;
}
The CSS issue appears resolved, but the JavaScript file remains broken
Current Status:
User successfully fixed the CSS portion but still needs help restoring the corrupted JavaScript file
The responder emphasized making backup copies before editing code and warned that menus (especially mobile) and product pages won’t work properly until the JavaScript is fixed
Summarized with AI on November 21.
AI used: claude-sonnet-4-5-20250929.
I was attempting to fix the text colour conflict on this page and have now managed to stuff something up so my whole store is wrong. Can someone tell me how to fix the error and the original problem. I have zero coding skills, I was applying a suggested fix from another forum post. Help! I edited theme.scss.liquid