Change the color of the primary menu and sub menu links on desktop and mobile, when you hover over them. By default you can set the color of the Primary Menu items and only the active menu item using the DIVI options.
Its a good visual indicator for the user when you change the color of the menu, specially if you have long sub menus.
Let’s add some CSS to change the colors for desktop and mobile. To do this head over to your style.css in your child theme and paste the following CSS. Alternatively you can also go to DIVI -> Theme Options and paste the CSS in the Custom CSS box.
I have used an orange color (#ffa500) in my example CSS. Change it to the color best suitable for your website.
Add CSS to Change Hover Colors for your Primary Menu
/* Change color on primary menu */
#top-menu-nav #top-menu a:hover,#mobile_menu_slide a:hover
Add CSS to Change Hover Colors for your Mobile Menu
/* Change color on Mobile Menu */
.et_mobile_menu li a:hover, header#main-header.et-fixed-header ul li ul li a:hover
color: #ffa500 !important;
I hope this DIVI Tip was helpful and if you do use it on your site, leave me a comment. For more such useful tips on WordPress and DIVI, do check out my DIVI Blog.
I would love to hear about how I can help your business website. I have specialized in using the DIVI theme from Elegant Themes since the past five years. If you would like to see the projects that I have completed as a DIVI Designer, please do have a look at my portfolio. Please contact me and I will get back to you immediately.