Main Navigation Colors Override Pre-Header Navigation
-
Every now and then I run into an issue where the main navigation colors override the pre-header navigation colors. This usually happens after editing the Additional CSS panel but I don’t think that’s the core of the issue.
The CSS is all internal, in the header. The Main navigation CSS is more specific:
.wpbf-navigation .wpbf-menu a, .wpbf-mobile-menu a, .wpbf-close { color: #000000; }
Then later down the same CSS line is:
.wpbf-pre-header a { color: #ffffff; }
Here’s a visual representation via Chrome Inspector. This issue doesn’t seem to happen immediately. Not sure if it’s the order in which the options are saved or if it’s updating the Additional CSS panel that triggers something but I’ve run into this a couple time prior. The going solution is manually override the CSS via The Customizer Additional CSS panel.
—
Immediately after reporting this I realize that it’s because we’re using the pre-header as a “Utility Navigation” and adding a WP Nav Menu Widget. It’s taking the main navigation colors because it’s a wpbf-menu. Adding something like this to the generated CSS may solve this issue:
.wpbf-pre-header a, .wpbf-pre-header .wpbf-menu a { color: #ffffff; }
- The topic ‘Main Navigation Colors Override Pre-Header Navigation’ is closed to new replies.