• Resolved hasshi0505

    (@hasshi0505)


    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 7 months, 2 weeks ago by hasshi0505.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter hasshi0505

    (@hasshi0505)

    supplement
    It is in the submenu of the submenu of the header menu of the Japanese page.

    Thread Starter hasshi0505

    (@hasshi0505)

    Mistook

    • This reply was modified 7 months, 2 weeks ago by hasshi0505.
    Moderator Felipe Santos

    (@foosantos)

    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:

    https://d.pr/i/Yox1tm
    Full Size: https://d.pr/i/Yox1tm

    Thread Starter hasshi0505

    (@hasshi0505)

    @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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Header menu’s color.’ is closed to new replies.