Shopify themes, liquid, logos, and UX
I'm trying to figure out how to make the width of the inline menu the width of the page without changing the location of the menu buttons. I'd also like to change the background color of just the menu. Any help is greatly appreciated!
Solved! Go to the solution
This is an accepted solution.
Oh!
You mean this?
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
Change the #d7d7d7 to your preferred colour.
<style>
nav.header__inline-menu:before {
content: '' !important;
background: #d7d7d7 !important;
height: -webkit-fill-available !important;
height: -moz-available !important;
height: fill-available !important;
width: -moz-available !important;
width: -webkit-fill-available !important;
width: fill-available !important;
width: -webkit-fill-available !important;
display: block !important;
position: absolute !important;
z-index: 0 !important;
left: 0 !important;
}
ul.list-menu.list-menu--inline {
position: relative !important;
z-index: 2 !important;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
Hey @ccn2,
Can you share the link to your store and also a screenshot of what you have vs. what you would like to have? An illustration is fine
Here's my store
I'd like something like this that will span the width of the page without moving the position of the log or anything else:
Are you trying to get full width because of the background or is there any other reason? Because you can have the full background without changing any width etc..
To change the background in full width, do this
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
Change #d7d7d7 to any colour you like
<style>
.header-wrapper.color-scheme-1.gradient.header-wrapper--border-bottom {
background: #d7d7d7;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
I just want the inline menu to be a different color. I asked about full width because all of the other codes I've tried only change the color but the menu doesn't expand to both ends of the page.
This is an accepted solution.
Oh!
You mean this?
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
Change the #d7d7d7 to your preferred colour.
<style>
nav.header__inline-menu:before {
content: '' !important;
background: #d7d7d7 !important;
height: -webkit-fill-available !important;
height: -moz-available !important;
height: fill-available !important;
width: -moz-available !important;
width: -webkit-fill-available !important;
width: fill-available !important;
width: -webkit-fill-available !important;
display: block !important;
position: absolute !important;
z-index: 0 !important;
left: 0 !important;
}
ul.list-menu.list-menu--inline {
position: relative !important;
z-index: 2 !important;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
This worked perfectly! Thanks so much!
By 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, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024