通过将以下行添加到childtheme style.css 样式表中,我几乎成功地更改了WordPress TwentySeventeen主题中的默认白色文本和灰色背景菜单颜色。
菜单屏幕截图
但是,当我从子菜单中的任何给定选择上移开鼠标时,菜单仍然非常简短地显示默认菜单颜色。对于CSS来说,我是个黑客,花了数小时试图在线找到解决方案。有什么建议么?非常感谢。
/*Change Drop Down Menu and Sub-Menu Hover and Text Color */
.menu a:hover,.menu li:hover>a {
background-color: rgb(220,225,200) !important;
/* light green */
color: #000000 !important;
}