Create a color exception for a category on a menu box
-
Hi,
I tried to modify the CSS of my website (http://www.agebrilliantly.org/) to change the color of the last button of my principal nav menu adding this code:
} #mainnav-menu li nth-child(8) a { color: #19368e; background: #1d660d; }But nothing has changed.
Anyone knows why?
Thanks in advance
-
Hi @vincelj, it looks like you are using WordPress but you are not hosted here at WordPress.com. For self-hosted WordPress sites such as yours using Dynamic News Lite, there is a support forum at WordPress.org where you can post your questions.
For general questions on self-hosted WordPress.org installations, visit http://wordpress.org/support/.
The differences between WordPress.com and WordPress.org.
I did take a quick look at your site and you want to use the unique menu item id to target individual menu items. This should get you going.
.flat-layout #mainnav-menu .menu-item-39 a:link { color: #19368e; background-color: #1d660d; }
- The topic ‘Create a color exception for a category on a menu box’ is closed to new replies.