-
Closed
-
Hi, to change the background color of selected item and hover of the main menu, I use this code, which works fine, when I insert it in theme option –> Custom css:
ul.nav-menu li.current-menu-item:before, ul.nav-menu li.current-menu-ancestor:before,ul.nav-menu li.current-menu-ancestor li.current-menu-item a, ul.nav-menu li.current-menu-ancestor li.current-menu-parent a,ul.nav-menu li.current-menu-item, ul.nav-menu li.current-menu-ancestor, ul.nav-menu li:hover {background:grey!important;}
Since I included all my css changes in the style.css of my child theme, I inserted the code in there, but it does not work. It seems, that the mark !important does not work in this case, but however… any hints are welcome.
Thank you, Frank
The topic Child theme problem with custom css: change background of selected item in menu is closed to new replies