Header menu’s color.
-
Hi,
I’m wodering how to change sub menu’s text color.
I think if text has link, they get color from link.I can’t change text color and link’s color is already gray but some sub menu’s text black..
Do you know how to change menu text to gray?
HTML<span class="wp-block-navigation-item__label">特設サイト</span>CSS
.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content { color: inherit; }-
This topic was modified 2 years, 2 months ago by
hasshi0505.
The page I need help with: [log in to see the link]
-
This topic was modified 2 years, 2 months ago by
-
supplement
It is in the submenu of the submenu of the header menu of the Japanese page.Mistook-
This reply was modified 2 years, 2 months ago by
hasshi0505.
Hi there,
If I understood correctly, you mean that you want only the sub-sub-menu to change the color. Is that correct?
Maybe something like that (odd selector, but should work):
.wp-block-navigation div ul li ul li ul li a span { color: green !important; }You can add this CSS by going to the Site Editor, then Styles. There you can click on the three-dot icon (kebab menu), and go to Additional CSS:
Full Size: https://d.pr/i/Yox1tm@foosantos
Thank you for your advice.
This time, the color of the sub-submenu is different from the submenu, so I would like to fix it.After adding CSS using the code and steps you provided, I was able to change the color of the sub-submenu.
It was very easy to understand when it was colored green.
I changed it to the color I wanted to use.
Thank you for this time.
-
This reply was modified 2 years, 2 months ago by
The topic ‘Header menu’s color.’ is closed to new replies.
