Issue: A Dawn theme menu item (“Christmas Gift Box”) was styled via CSS but only applied between 990–1999 px; other widths reverted to default.
What was tried:
Placing the CSS rule (#HeaderMenu-christmas-gift-box > span) at the end of base.css.
Removing earlier, conflicting/duplicate rules identified by line number in a screenshot.
An alternative suggestion to insert CSS before in theme.liquid, with screenshots showing the expected result.
Root cause and fix:
A missing closing curly brace in the CSS caused rules to fall under unintended scopes/breakpoints, leading to inconsistent behavior. After closing the brace and removing conflicting code, the custom style (color, bold, no underline) applied across all screen sizes.
Outcome:
Resolved. The menu item now displays correctly at all widths; the original poster confirmed and expressed thanks.
Other notes:
Screenshots were central for identifying conflicting lines and demonstrating results.
A WYSIWYG app (EasyEdits) was suggested as an optional, code-free way to apply per-screen-size edits.
Summarized with AI on December 12.
AI used: gpt-5.
I’m currently editing my Dawn theme and need help with customising a menu item (“Christmas Gift Box”) that links directly to a product.
I’ve added code to customise the menu, but the changes only apply between 990px and 1999px. For other screen sizes, the website reverts to the default style. I need the changes to apply universally.
Here’s the code I currently have in base.css (only works for 990px ≤ screen width ≤ 1999px):
/* Change Christmas gift box menu item color, font weight, and remove underline*/
#HeaderMenu-christmas-gift-box > span {
color: #a80000;
font-weight: bold;
text-decoration: none;
}
Hi there! It looks like plenty of folks have already shared some code for you to try. Normally, I’d add another option for you, but I think you’ve got enough to work with already, haha. Instead, I just wanted to mention EasyEdits, an app I created that works like a WYSIWYG editor. It lets you click on elements and make changes—like adjusting color—without needing any code. You can edit on different screen sizes & apply edits only to those sizes.
You can even make your edits during the free trial and keep them after uninstalling, without paying anything!
Let me know if you decide to give it a try or if there’s anything I can help with. Best of luck!