Tagged: x
-
AuthorPosts
-
April 19, 2016 at 6:15 pm #890915
tshoresParticipantPlease see this site:
https://not1more.org/As you can see, I’ve modified the navbar background color with this CSS,
.x-navbar {
background-color: #EBF1D8;
}However, the dropdown menu background color is still black. How can I modify those dropdowns?
Also, how do I change the color of other elements in the navbar, like the line separating navbar from body?
Thanks!
April 20, 2016 at 6:10 am #891576
ChristopherModeratorHi there,
Please add following code in Customize -> Custom -> CSS :
ul.sub-menu { background-color: #EBF1D8 !important; } .x-navbar { border-bottom: 2px solid red; }Hope it helps.
April 20, 2016 at 10:15 am #891953
tshoresParticipantThat’s what I needed, thank you!
April 20, 2016 at 10:24 am #891988
tshoresParticipantHmmm however it has affected all submenus, please see the header menu. I tried creating another menu to place in the header, thinking perhaps this CSS only targed the “main menu”, but the color in the dropdown header is still affected.
How can I code this CSS to only affect the color of the navbar menu?
April 20, 2016 at 10:37 pm #892919
Nabeel AModeratorHi again,
The above code will change the background color of all submenus, can you please provide us a screenshot of what you’re trying to achieve?
Thanks!
April 21, 2016 at 10:09 am #893775
tshoresParticipantPlease see the screenshot of the current Header menu. The Header is expanded. The Main Menu has two links: The Story, and a submenu, Chapter 1. The background of Chapter 1 is green, and as you can see, that looks terrible … I want it to match the rest of the menu, which is currently the default Ethos header menu background.
The submenu background is green because of the CSS I put into Customizer earlier in this thread. I want the navbar to be green.
Please help me update CSS in Customizer so only the navbar submenus background is green, restoring the header submenu to its default background color.
April 22, 2016 at 12:15 am #894787
LelyModeratorHi There,
Unfortunately, I am little confuse on what I have seen on your site compare to your screenshot. See attached screenshot. It’s different. To add green background to submenu only, please use this CSS:
.x-navbar .sub-menu { background-color: green !important; }If this doesn’t achieve what you want, please do clarify because you’re appearance is really different on your screenshot.
April 22, 2016 at 9:52 am #895471
tshoresParticipantPlease check my site again:
https://not1more.orgAt the very top right corner, you’ll see a little + button. Click that + button and the WordPress header menu opens up, with WordPress widget areas. This is different from the X/Ethos navbar.
As you’ll see the submenu color CSS that controls the submenu background color in the X/Ethos navbar ALSO affects the submenu bg color in this separate header widget area.
I want to know the CSS to make my header submenus match my header bg color. I also want the CSS to modify my header bg color. Please help?
April 23, 2016 at 2:40 am #896379
Nabeel AModeratorHi again,
Thank you for the clarification! To change the Widgetbar submenu color, try adding the following code in your Customizer:
.x-widgetbar .sub-menu { background-color: transparent !important; } .x-widgetbar .widget ul li a, .x-widgetbar .widget ol li a { color: #fff !important; }To change the color of Widgetbar, you can use this code:
.x-widgetbar { background-color: #FAEBD7 !important; }Change the colors as per your need to match the site. Hope this helps!
April 24, 2016 at 11:39 am #897548
tshoresParticipantAhhhhh yes that’s beautiful, thank you.
FYI I added a line to your code, to change link color when I hover:
.x-widgetbar .sub-menu {
background-color: transparent !important;
}
.x-widgetbar .widget ul li a, .x-widgetbar .widget ol li a {
color: #fff !important;
}
/* this is the line i added */
.x-widgetbar .widget ul li a:hover, .x-widgetbar .widget ol li a:hover {
color: #A9C84F !important;
}
.x-widgetbar {
background-color: #493226 !important;
}April 24, 2016 at 4:33 pm #897771
NicoModeratorHappy to hear that.
Feel free to ask us again. Thank so much for sharing us the code you used. It would help a lot to others.
Have a great day! 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-890915 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
