Shopify themes, liquid, logos, and UX
I would love to be able to edit the navigation bar separately from the header and have it be a separate color from the header.
Something like this:
I'd also like to add a secondary side bar menu down the side if possible!
Cheers!
Morgan
Solved! Go to the solution
This is an accepted solution.
You did the instructions right. You might get an error in your base.css file. Lets paste the code in a different way. Please remove the code we paste in base.css and follow the instructions below
<body class="gradient{% if settings.animations_hover_elements != 'none' %} animate--hover-{{ settings.animations_hover_elements }}{% endif %}">
<style>
sticky-header.header-wrapper.gradient:after {
content: "";
background: #a1c0aa;
display: block;
width: 100%;
height: 50px;
margin-top: -70px;
}
sticky-header.header-wrapper.gradient {
position: relative;
}
.header__active-menu-item,.header__menu-item,span.header__active-menu-item {
color: white;
}
</style>
Go to your Online store > Themes > Customize > Header > Desktop logo position > Top center
- Helpful? Like and Accept solution! Support me! Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Certainly can achieve this. Please follow the instructions below
Please make sure your header is set to top center
Next, we need to add the code.
sticky-header.header-wrapper.gradient:after {
content: "";
background: #a1c0aa;
display: block;
width: 100%;
height: 50px;
margin-top: -70px;
}
sticky-header.header-wrapper.gradient {
position: relative;
}
.header__active-menu-item,.header__menu-item,span.header__active-menu-item {
color: white;
}
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
I can't seem to get it to work. 😪 I'm still very hopeful. If it wasn't 11:30 PM I'd probably have a slightly fresher mind to scratch this out. haha 😅
This is an accepted solution.
You did the instructions right. You might get an error in your base.css file. Lets paste the code in a different way. Please remove the code we paste in base.css and follow the instructions below
<body class="gradient{% if settings.animations_hover_elements != 'none' %} animate--hover-{{ settings.animations_hover_elements }}{% endif %}">
<style>
sticky-header.header-wrapper.gradient:after {
content: "";
background: #a1c0aa;
display: block;
width: 100%;
height: 50px;
margin-top: -70px;
}
sticky-header.header-wrapper.gradient {
position: relative;
}
.header__active-menu-item,.header__menu-item,span.header__active-menu-item {
color: white;
}
</style>
So I must have some overlap of code somewhere that is blocking this code from working. I added a new 'Dawn' theme and added the code in and it worked perfectly.
I then made a copy of my original 'Dawn' theme and copied the entire theme.liquid code from the new theme to the copy and it still doesn't show up on the copy.. so I just need to browse through that to find it!
You have been an INCREDIBLE help!
Hi there, this worked for my theme - thank you! The only issue I'm having now is how it displays on mobile. Is there a way to remove/hide this code for mobile and have that display as normal?
See attached screenshot - I made the banner for the menu blue which looks great on desktop but is too much on mobile, and no amount of padding will fix it. Thank you!
I tried this method but now when i used my dropdown menu, the menu buttons only show on hover and the subcategory text is white instead of black. does anybody know how to fix this please?
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024