Site logo

Archived topic

Colors of inserted navigation

5 replies · Started by Erika on May 3, 2022

Viewing posts 1–6 of 6

Hi there,

Instead of the navigation I created a header element with the navigation. The set colors from the customizer do not work for this navigation, i. e. the color of the current menu does not appear. Is there a way to set the colors for the navigation or does it need css?

Thanks, Erika

Hi there,

the Navigation Block has its own color settings. If you edit the Element, and select the Navigation Block you will find its Color options in the sidebar

Hi David,

that is right, but there is no current color, only a color for the text (which sets the color for each menu points), background, submenu and underlay. Can I set the current color somehow or should I use css?

Thanks, Erika

Oh wow - that is very odd to leave that style option out.
You can use this CSS:

.wp-block-navigation .current-menu-item .wp-block-navigation-item__content {
    background-color: #f00;
    color: #fff;
}

Yep, but I have you ;) Thanks a lot!

:) Glad to be of help

This archived topic is closed to new replies.