Site logo

Archived topic

Float a navigation to the content

5 replies · Started by Xuan on May 17, 2018

Viewing posts 1–6 of 6

Hi, I'm wondering how would I be able to float a primary navigation on top of a content?

I have disabled the header in page setting. Just want the navigation to float right on top of a content image.

I see. It works. But now how would I be able to just set the colors for the sticky navigation & header (once they being merged)? I would like to set the background color and text color for the merged sticky navigation & header.

Thank you

You can use the Customiser > Colors > Primary navigation, this will control the base colors for the nav and the sticky nav.
You can then override the base nav colors in the Page Header Advance tab, so you could have a transparent nav that becomes a solid color on sticky.

Thanks~! one more question. How would I be able to customize the active navigation border? And it will be different for both regular navigation and sticky navigation.

Hi Xuan,

You can target the current menu item for the navigation:

.main-navigation .main-nav ul .menu .current-menu-item {
styles here
}

And the navigation when sticky:

.main-navigation.is_stuck .main-nav ul .menu .current-menu-item {
styles here
}
This archived topic is closed to new replies.