Change the color of dropdown menue
-
hey dear wordpress-team,
dear users,
i would love to change the background color of my dropdownmenue. it’s black right now and i just don’t like it. but i couldn’t find any well working hint in the forum right now.
could you please help me?
I’m using the theme “forever”.
greetz franziThe blog I need help with is: (visible only to logged in users)
-
To change the base color of the submenus (nothing hovered) add the following and adjust the color as desired.
#access ul ul { background: #cc0000; } -
Oh thanks for your quick and helpful answer. it worked!
but the head of each dropdown and the one where my cursor is at are still black. which attribut do i need to change for that? is it the one you call “hovered”? and how does that work?
greetz franzi -
oh and how to change the font colour of the dropdowns? it’s white right now and if i choose a light colour for the background it’s almost invisible…
thanks a lot for your time and help in advance!
greetz franzi -
To change the hover background color on the top level menu items, add the following and adjust the color.
#page #access li:hover > a { background: #000; }To change the non-hover color on the text in the submenu items, add the following and adjust the color.
#access ul ul a { color: #CCC; } -
And actually, you mention going light on the background colors for the menu items, so instead of the first above, add this instead, which also includes the hover color for the text.
#page #access li:hover > a { background: #6495ed; color: #fff; } -
Oh great! It is working very well! Thank you so much for your help! You made my day! =)
Have a nice week.
Greetz Franzi -
Oh and may I ask one last question.
How can I change the background and the font color of the menue-item I clicked on. This one still has a strange combination of colors.
Thanks a lot!
Franzi -
oh and is it possible to change the font (style of lettering) of the menue and the sidebar menue into the same font (style of lettering) like in the normal text?
Greetz Franzi -
I took a look in your customizer and see you have the same font set for headings and body. Is that what you wanted?
To change the color of the menu item text, add the following CSS and adjust as you desire. (excuse my red demo color)
#access a { color: #cc0000; } -
thanks for your red help =)
unfortunately it wasn’t what i ment.
hmmm…how to explain correctly…when i’m clicking at the menu, the actual chosen item will appear in special color. in my case it gets a lightgrey background and a darkgrey font color. and even the dropdown menu of the clicked item appears in a grey color. And I would love to change that. is that possible?and the font style question: in my understanding the headings and body are parts of the “general” text part. heading = head line, body = the text part itself. does it include the primary menu/dropdown menu and the sidebar too? for me it looks like all parts have a different font style…
thanks so much for your patience.
greetz franzi -
ah okay…i was playing again a bit with the css-options for font style and now i think i understand it…
the settings for headings are completly just for the headlines but the settings for body are for all other texts, including the menu and the sidebar. isn’t it? -
yes i think that answered my second question =)
about my first question: if you go there https://energiesuffizienz.wordpress.com/bmbf/
and compare the dropdown menu of “forschungsprojekt” with the dropdown menu of “theorie” then you can see my “color problem”. -
Ah, thanks for the examples. You can adjust the color of the text on the current page submenus with the following CSS.
#access li.current_page_item ul a, #access li.current-menu-item ul a, #access ul ul li.current_page_item a, #access ul ul li.current-menu-item a { color: #000; } -
Hi I need help with changing the colour of the top menu of my blog
dubaiquiltersguild.wordpress.comthank you
-
Hi @dubaiquilter, since you are using a different theme, and since CSS is generally theme specific, can I ask you to create a new thread in the CSS Forum?. Many thanks in advance.
-
@thesacredpath: the new thread is here—-> https://en.forums.wordpress.com/topic/colour-change-of-fonts?replies=1#post-2171460
Cheers.
-
-
- The topic ‘Change the color of dropdown menue’ is closed to new replies.