Home › Forums › WoodMart support forum › Change the color scheme of mobile nav
Change the color scheme of mobile nav
- This topic has 9 replies, 3 voices, and was last updated 2 years, 9 months ago by
Luke Nielsen.
-
AuthorPosts
-
July 7, 2022 at 2:32 pm #389390
AnneParticipantHello,
How to change the colors of the mobile nav sidebar by invertering the color scheme:
at this time it is background white and other things in dark color.
I would like background dark (#171717), menu in white and other things in light color.
ThanksAttachments:
You must be logged in to view attached files.July 8, 2022 at 9:27 am #389523
Aizaz Imtiaz AwanKeymasterHello,
Please try adding the following Custom CSS in the Custom CSS for Mobile area under Theme Settings >> Custom CSS.
.wd-nav-mobile li a {
background-color: #171717;
color: white;
}Best Regards
July 8, 2022 at 3:43 pm #389631
AnneParticipantIt changes only a few things on the menu, see the photos before/after.
Attachments:
You must be logged in to view attached files.July 9, 2022 at 9:10 am #389764
Aizaz Imtiaz AwanKeymasterHello,
Please replace the previous Custom CSS with the following then check back.
.wd-side-hidden.wd-opened { background-color: #171717; } .wd-nav-mobile li a, .wd-nav-mob-tab[class*="wd-style-underline"] .nav-link-text, .mobile-nav .searchform input[type="text"]::placeholder, .searchform .searchsubmit:after { color: white; }
Best Regards
July 9, 2022 at 4:56 pm #389842
AnneParticipantHello,
Thank you. I have added this code and it gives the image below in dark:.wd-side-hidden.wd-opened {
background-color: #171717;
}.wd-nav-mobile li a, .wd-nav-mob-tab[class*=”wd-style-underline”], .nav-link-text, .mobile-nav , .searchform input[type=”text”]::placeholder, .searchform .searchsubmit:after , .wd-heading .wd-action-btn>a {
color: white;
}
.nav-link-text {
font-size: 20px;
line-height: 1.2em;
text-transform: uppercase;
}How to change the color of the lines around the form and between the nav please?
Attachments:
You must be logged in to view attached files.July 11, 2022 at 10:44 am #390105
Luke NielsenKeymasterHello,
Please, replace the old code with the below one, enter it to the “Global Custom CSS” area that is in Theme Settings -> Custom CSS.
.mobile-nav { --color-gray-100: rgba(255,255,255,0.1); --color-gray-200: rgba(255,255,255,0.2); --color-gray-300: rgba(255,255,255,0.5); --color-gray-400: rgba(255,255,255,0.6); --color-gray-500: rgba(255,255,255,0.7); --color-gray-600: rgba(255,255,255,0.8); --color-gray-700: rgba(255,255,255,0.9); --color-gray-800: #fff; --color-gray-900: #fff; --bgcolor-white-rgb: 0,0,0; --bgcolor-white: #0f0f0f; --bgcolor-gray-100: #0a0a0a; --bgcolor-gray-200: #121212; --bgcolor-gray-300: #141414; --brdcolor-gray-200: rgba(255,255,255,0.1); --brdcolor-gray-300: rgba(255,255,255,0.15); --brdcolor-gray-400: rgba(255,255,255,0.25); --wd-text-color: rgba(255,255,255,0.8); --wd-title-color: #fff; --wd-widget-title-color: var(--wd-title-color); --wd-entities-title-color: #fff; --wd-entities-title-color-hover: rgba(255,255,255,0.8); --wd-link-color: rgba(255,255,255,0.9); --wd-link-color-hover: #fff; --wd-form-brd-color: rgba(255,255,255,0.2); --wd-form-brd-color-focus: rgba(255,255,255,0.3); --wd-form-placeholder-color: rgba(255,255,255,0.6); --wd-form-chevron: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNSIgaGVpZ2h0PSIyNSIgZmlsbD0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2U9InJnYmEoMjU1LCAyNTUsIDI1NSwgMC42KSI+PHBhdGggZD0iTTYgOWw2IDYgNi02Ii8+PC9zdmc+); --wd-main-bgcolor: #1a1a1a; color: var(--wd-text-color); } .mobile-nav .wd-nav-mob-tab[class*="wd-style-underline"] { --nav-color: white; --nav-color-hover: white; --nav-color-active: white; }
https://gyazo.com/e07ee6ebe82ad2f9d2eb7fd24480677b
Let me know if there is anything else I can help and have a good day!
Kind Regards
-
This reply was modified 2 years, 9 months ago by
Luke Nielsen.
July 11, 2022 at 3:24 pm #390224
AnneParticipantHello,
Thank you very much, it is good, just the border under “search for posts” is missing, should I add something in the css code please?July 11, 2022 at 4:18 pm #390245
Luke NielsenKeymasterHello,
The thing is that by default the “search for products” doesn’t have any border but if you want it, you can add the below code also.
.mobile-nav .searchform { border: 1px solid #fff; }
Kind Regards
July 11, 2022 at 4:30 pm #390251
AnneParticipantYes, it works, thank you very much.
July 11, 2022 at 4:59 pm #390262
Luke NielsenKeymasterAlways remember that you can reach out to us with any questions you may have.
We wish you a splendid day!
Kind Regards
-
This reply was modified 2 years, 9 months ago by
-
AuthorPosts
The topic ‘Change the color scheme of mobile nav’ is closed to new replies.
- You must be logged in to create new topics. Login / Register