Shopify themes, liquid, logos, and UX
Dear Shopify Community,
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;
}
Website: https://meowplaza.com/
As a thank you, I’d love to buy a coffee for the person who helps me with a solution!
Thank you in advance!
Solved! Go to the solution
This is an accepted solution.
Hi @rrugile
Try this one.
<style>
#HeaderMenu-christmas-gift-box > span {
color: #a80000 !important;
font-weight: bold;
text-decoration: none;
}
@media only screen and (max-width: 989px){
a#HeaderDrawer-christmas-gift-box {
color: #a80000 !important;
font-weight: bold;
text-decoration: none;
}
}
</style>
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
@rrugile Replace the code shown in the screenshot with the code given below at the end of base.css
@media (max-width: 1199px){
.new-arrivals-product .wrapper-compare {
display: none !important;
}
}
/* 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;
}
Unfortunately that did not work...
@rrugile You haven't removed the previous code. Please check the screenshot below. Please remove the code shown in line no. 3537 to 3540.
Oh I see now! The curly brace was not closed. Thank you for checking my code 😅 I'd like to get you a coffee! Please send me your link.
This is an accepted solution.
Hi @rrugile
Try this one.
<style>
#HeaderMenu-christmas-gift-box > span {
color: #a80000 !important;
font-weight: bold;
text-decoration: none;
}
@media only screen and (max-width: 989px){
a#HeaderDrawer-christmas-gift-box {
color: #a80000 !important;
font-weight: bold;
text-decoration: none;
}
}
</style>
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Thank you! That worked perfectly. Enjoy your coffee!
Welcome, and thank you for the tips! I definitely will.
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!
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024