Tagged: hover
- This topic has 7 replies, 2 voices, and was last updated 6 years, 8 months ago by Theme Horse Support Team.
-
AuthorPosts
-
February 19, 2018 at 4:15 am #55262Sam DillerParticipant
I recently upgraded to 3.07 and I’m trying to change the background color of the submenu when I hover
The website is http://www.whisperingmanes.orgI tried to use the following css, but the hover remains white.
#access li {
padding: 0;
}
#access a {
padding: 16px 10px 0;
}
#access a:hover,
#access ul li.current-menu-item a,
#access ul li.current_page_ancestor a,
#access ul li.current-menu-ancestor a,
#access ul li.current_page_item a,
#access ul li:hover > a,
#access ul li ul li a:hover,
#access ul li ul li:hover > a,
#access ul li.current-menu-item ul li a:hover {
background-color: #004264;
color: #fff;
}February 20, 2018 at 10:18 am #55301Theme Horse Support TeamKeymasterHi Erin,
To change the background color of the submenu only go to Appearance> Customize > Design Options > Custom CSS and paste the below CSS code then click on Save button.
#access ul li ul { background-color: #fff !important; }
Note: Change the above HEX color code
#fff
to your own color code.Thank you!
February 22, 2018 at 7:17 pm #55329Sam DillerParticipantI’m sorry but I didn’t ask the question well. I need to change the color of the submenu when you hover over the menu item.
I tried the following code, but when I hover over the menu item it turns white. The font is white making it impossible to read the item.
I have tried adding !important and changing the last color in the code to match background-color, but no matter what I try the hover color remains white. I want white font on a blue background when I hover over the submenu itemThe website is http://www.whisperingmanes.org
}
#access a:hover,
#access ul li.current-menu-item a,
#access ul li.current_page_ancestor a,
#access ul li.current-menu-ancestor a,
#access ul li.current_page_item a,
#access ul li:hover > a,
#access ul li ul li a:hover,
#access ul li ul li:hover > a,
#access ul li.current-menu-item ul li a:hover {
background-color: #004264;
color: #fff;
}February 23, 2018 at 8:40 am #55334Theme Horse Support TeamKeymasterHi Erin,
Please try below css code.
#access a:hover, #access ul li.current-menu-item a, #access ul li.current_page_ancestor a, #access ul li.current-menu-ancestor a, #access ul li.current_page_item a, #access ul li:hover > a, #access ul li ul li a:hover, #access ul li ul li:hover > a, #access ul li.current-menu-item ul li a:hover { background-color: #004264 !important; color: #fff !important; }
Thank you!
March 15, 2018 at 3:11 am #55509Sam DillerParticipantThe above code does not fix the problem. When I hover the hover color is white instead of the color #004264.
The hover color was working properly before we updated to 3.07March 30, 2018 at 12:21 pm #55634Theme Horse Support TeamKeymasterHi Erin,
Can you please remove above css from the custom css and paste the below one:
#access ul li ul li:hover a { background-color: #004264 !important; color: #fff !important; }
Thank you!
April 25, 2018 at 7:20 pm #55865Sam DillerParticipantthank you at first that did not appear to fix the problem. But I changed the order of the CSS and it works now. As I’m clearly not an expert in CSS, I don’t know if changing the order really fixed it, but it is working. So thank you for your help!
May 2, 2018 at 11:48 am #55924Theme Horse Support TeamKeymasterHi Erin,
You are welcome Erin. Please let us know if you have any problem.
Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.