Shopify themes, liquid, logos, and UX
Hi, I am currently using the dawn theme and I want to change the menu color to #a01f1f. Can anyone help me with this? I would really appreciate it.
Can you share with me the page url..
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
Hi @twacomm-store , go to edit code > assets > base.css and add this:
.header-wrapper--border-bottom{
background:#a01f1f!important;
}
Thank you so much for your reply. I tried that but made the header a different color and not just the menu. Any ideas. Thanks again for your help
Yeah, I though that you meant menu background. 😂
Go to edit code > assets > base.css and add this:
.header__menu-item span{
color:#a01f1f;
}
Well were getting there. Now it just made the text red, but not the navigation bar.
@twacomm-store , well that's specific. You have to share url so I can send you the code. 🙂
https://vikingtelecomsolutions.myshopify.com
Thanks you much Marina for your help! I really appreciate it!
No problem, go to edit code > assets > base.css:
.header__inline-menu{
background:#a01f1f;
}
That worked!!!! Your the best! Do you know how to make the menu bar full page?
Hi @twacomm-store , go to edit code > sections > header.liquid and look for this:
<header class="header header--top-left page-width header--has-menu">
Remove 'page-width'.
Hi @MarinaPetrovic, I am trying to do the same thing as @twacomm-store did. I managed to change the color to white, but can't get the menu bar to be full page.
It seems as if the code in the latest Dawn theme version might be a little bit different.
Any ideas how to get the menu to be full page? Thank you.
<header class="header header--{{ section.settings.logo_position }} header--mobile-{{ section.settings.mobile_logo_position }} page-width{% if section.settings.menu != blank %} header--has-menu{% endif %}">
Hey @Boky , please share URL so I can take a look. 🙂
Thanks for the fast response. I've sent you a PM.
Hey @Boky , go to edit code > sections > header.liquid, look for this:
<header class="header header--{{ section.settings.logo_position }} header--mobile-{{ section.settings.mobile_logo_position }} page-width{% if section.settings.menu_type_desktop == 'drawer' %} drawer-menu{% endif %}{% if section.settings.menu != blank %} header--has-menu{% endif %}">
replace it with:
<header class="header header--{{ section.settings.logo_position }} header--mobile-{{ section.settings.mobile_logo_position }} {% if section.settings.menu_type_desktop == 'drawer' %} drawer-menu{% endif %}{% if section.settings.menu != blank %} header--has-menu{% endif %}">
After that go to assets > base.css and add this:
.header__inline-menu{
width:100%;
text-align:center;
}
Hi @MarinaPetrovic - do you know how to change the color of just one item in the header navigation? I want my 'sale' section to be red, but keep all my other navigation headers black.
Thanks!
I also looking for the same solution here
Hey @MarinaPetrovic do you know, how can I change only one (the first) menu item's font's color?
Hi @FHostman , please share url so I can take a look. 🙂
like a few people posting at the end here, I am also looking for a solution to change the color of just a single menu item in the header of the dawn theme.
Here is my url https://liriodumplings.com/
ideally, the word 'tienda' would be red.
Thank you!
oh, actually I think I figured it out for others who might be interested
Going to the edit theme code page, under 'Assets' find the base.css and add
.header__inline-menu .list-menu li:nth-child(1) a{color: red !important;}
anywhere after where it says ":root {"
just change 'red' to whatever color or color code you want. and change the number in the parenthesis after "child" to the corresponding menu item you want to change the color of. In this case, 1 was the first item, but if you wanted to changed it to the third item for example, change it to (3).
Cheers!
Hello Lirio,
The coding you provided worked great for the first menu item but I want it to be on the eight menu item Sale. I changed the number to (8) and it did not work. My menu changes depending on the what collections are in season so I would have to make note where I make the change so I can change the code as the position on the menu changes, is that correct? Here's my url: https://aliscouture.com/
Hiya Marina,
This worked for me, however my menu bar is not fully across the page. It has a white section either side, which part of the code do I need to edit to fix this please? Thanks
I'm having this same issue!
Please share url so I can take a look. 🙂
You have been amazing and sadly I have joined the chat a bit later 😄
Could you please have a look at my website too by any chance? I've tried that 4-5 different codes but none of them worked for me.
I would like the SALE collection to be colored to #C51E3A in the navigation. FYI I'm using Buddha mega menu navigation app if that could be the problem why it's not working for me.
The website's URL is this: https://luvpip.com/
Thanks for looking into this 🙂
Hi @Luvpip go to edit code > assets > base.css and add this:
li.buddha-menu-item:first-child a{
color:#C51E3A;
}
Best
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024