Will buy you a coffee: (DAWN) change menu item colour problem at screen widths over 2000px

Solved

Will buy you a coffee: (DAWN) change menu item colour problem at screen widths over 2000px

rrugile
Tourist
9 0 2

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!

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
9567 2279 2828

This is an accepted solution.

Hi @rrugile 

Try this one. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes"
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • In the "theme. Liquid" file. Find the </body> tag and paste the code below before the tag. 

 

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

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1733429446407.pngMade4uoRibe_1-1733429457621.png

     

 

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

View solution in original post

Replies 8 (8)

NerdCurator
Shopify Partner
416 76 112

@rrugile  Replace the code shown in the screenshot with the code given below at the end of base.css

Screen Shot 2024-12-06 at 12.22.15 AM.png

 

 

@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;
}

 

 

 

Believes in delivering optimizing web solutions | Shopify Partner | Working as a web developer for last 10+ years.
- Was my reply helpful? Click Like to let me know! Coffee tips fuel my dedication.
- Was your question answered? Mark it as an Accepted Solution
Email me: info@nerdcurator.com
rrugile
Tourist
9 0 2

Unfortunately that did not work...

NerdCurator
Shopify Partner
416 76 112

@rrugile You haven't removed the previous code. Please check the screenshot below. Please remove the code shown in line no. 3537 to 3540. 

 

Screen Shot 2024-12-06 at 12.32.45 AM.png

 

 

Believes in delivering optimizing web solutions | Shopify Partner | Working as a web developer for last 10+ years.
- Was my reply helpful? Click Like to let me know! Coffee tips fuel my dedication.
- Was your question answered? Mark it as an Accepted Solution
Email me: info@nerdcurator.com
rrugile
Tourist
9 0 2

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.

Made4uo-Ribe
Shopify Partner
9567 2279 2828

This is an accepted solution.

Hi @rrugile 

Try this one. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes"
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • In the "theme. Liquid" file. Find the </body> tag and paste the code below before the tag. 

 

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

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1733429446407.pngMade4uoRibe_1-1733429457621.png

     

 

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.
rrugile
Tourist
9 0 2

Thank you! That worked perfectly. Enjoy your coffee!

Made4uo-Ribe
Shopify Partner
9567 2279 2828

Welcome, and thank you for the tips! I definitely will.

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

mt686
Shopify Partner
90 11 20

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!