This topic has 10 replies, 3 voices, and was last updated 7 years, 6 months ago ago by Max Mullins
Hi there,
I have changed the code is custom css to make main menu on homepage black, font white, but when hovered over the font becomes red.
However, when selecting and in a menu category. That menu font becomes invisible on the menu bar.
I would like it to remain white and visible on the menu bar, when that in that category.
Here is the code I have so far. Please could you alter or add to the code for the above to happen.
Many thanks
.main-nav {
background-color: black;
}
.main-nav .menu > li > a {
font-size: 12px;
font-weight: 400;
color: white;
}
.main-nav .menu > li > a:hover {
color: red !important;
}
hello,
use following custom css to remain white and visible on the menu bar, when that in that category.
.main-nav .menu > li.current-menu-item > a { color: #fff!important; }
HI there,
Sorry this is not working for me.
I tired adding the code you sent to the existing code in message above and does not work.
Please login to my wordpress if needs be.
Thanks again
for me it looks fine..
selected page navigation name is white now.
check the screenshot in private content.
clear your browser cache and see your site
Hi there,
So sorry really cannot seem to find where to find private content.
But have cleared browser cashe, and still does not seem to be working for me.
For example, when clicking on SHOP WOMEN from main menu in homepage, this brings up a the shop women page, but “SHOP WOMEN” then goes blank / disappears in the menu.
I would like it to still appear white when clicked into.
Thanks again
here about us page is selected and the navigation about is white : https://prnt.sc/fbf3u8
so it is ok right?
HI Thevathson,
Thanks.
It seems to be working for ABOUT and CONTACT on the menu.
But if you try SHOP WOMEN, DESIGNER SALE INVITE, BRANDS, it is not working.
Thanks again
Hello, @damon.
Please add following code into the custom.css:
#menu-main-navigation-2 .current-menu-item a{color:red}
Regards,
Max Mullins
HI Max,
This seems to work.
Not the ideal solution, as the text in the sub menus changes to red also.
Any further code you can provide me for this to happen.
Please refer to SHOP women.
You will see when on this page,
SHOP WOMEN now appears red, but sub categories also appear red.
Would it be possible for these to appear black.
No worries if not.
Thanks again
Hello
Pleae try out following line instead of previous:
#menu-main-navigation-2 .current-menu-item .item-level-0 a{color:red}
Regards,
Max Mullins `
You must be logged in to reply to this topic.Log in/Sign up