I want to change colour of main menu to black background and white text
My URL https://houseofsneakers.in/
A user seeks to change their Shopify store’s main menu to have a black background with white text.
Solution Provided:
background: black and color: white properties.header__reward, #mobile-menu-drawer, and .mobile-nav__item classesAdditional Request:
The user also wants product titles to fit within 2 lines maximum on mobile view.
Secondary Solution:
letter-spacing: -.5px to .product-item__info classBoth solutions use media queries targeting screens with max-width of 1199px (mobile devices). The discussion appears resolved with working CSS code provided.
I want to change colour of main menu to black background and white text
My URL https://houseofsneakers.in/
Hi @Emiway
Check 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 “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media only screen and (max-width: 1199px){
mobile-navigation#mobile-menu-drawer, .drawer__header.drawer__header--shadowed {
background: black !important;
}
mobile-navigation#mobile-menu-drawer * {
color: white !important;
}
.mobile-nav__item:not(:last-child) {
border-color: white !important;
}
}
And Save.
Result:
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
Please dont forget to likes also.
What I can do for the lines are decrease the letter spacing.
Check this one. Same instruction.
@media only screen and (max-width: 1199px){
.product-item__info {
letter-spacing: -.5px;
}
}
And Save.
Some may not be on the 2 lines it is because of the titles you put on the product. You need to lesser it in order to fitted 2lines.
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!