What is the css declaration for a submenu item when it is the current page?
-
I assign categories to all my posts which become menu items. When hovering over the parent/main menu item the subitem which is one of the categories assigned to that post is not readable because the font and background colors are the same. For example, today, November 15th’s post is titled “Chipping off the Old Block.” When that is the current page, the submenu items which represent the categories to which it belongs (“civic engagement” under “WELFARE” and “USA” under “LOCATION”) look blank. I want to keep the background color as it is, but I want the font color to be white. Thanks for your help. I’d be lost without the Happiness Engineers.
The blog I need help with is: (visible only to logged in users)
-
Hi there,
The CSS selector you need for this depends on the theme you’re using, because each theme has different CSS and uses different CSS selectors. I recommend using your browser’s inspector (for example, the Chrome Developer Tools) to find the right CSS selector. We have a guide for how to do that here: How to Find Your Theme’s CSS
We also have a great series of blog posts that walk through how to do that:
- An Intro to CSS, or How to Make Things Look Like You Like
- An Intro to CSS: Finding CSS Selectors
- Intro to CSS: Previewing Changes with the Matched Rule Pane
If you’d like additional help writing the CSS declaration you need, most of our CSS support is done in our community forums here:
https://en.forums.wordpress.com/forum/css-customizationYou can post questions in that forum and get help from both staff and volunteers who are great at working with CSS. :)
-
- The topic ‘What is the css declaration for a submenu item when it is the current page?’ is closed to new replies.