Home › Forums › Support › How do you make the top navigation menu item sticky without transparency? (ZEAL)
- This topic has 7 replies, 3 voices, and was last updated 3 years, 2 months ago by Ying.
-
AuthorPosts
-
February 11, 2021 at 5:15 pm #1655161Cedric
I see that there is an option to enable the sticky menu which is good however I cannot find the option to change/disable the transparency of this. I want to make the sticky menu exactly the same as the original (top of the page)
February 11, 2021 at 5:51 pm #1655171YingStaffCustomer SupportHi Cedric,
Sticky navigation background color would be the same as Primary navigation’s parent items background color.
You can go to customizer > color > primary navigation, set parent items background color.
However if you want to use different background color just for sticky navigation, use this CSS:
#sticky-navigation { background-color: #d1d1d1; }
Btw don’t forget to upload a logo at customizer > layout > sticky navigation > Sticky Navigation Logo.
Let me know π
February 11, 2021 at 8:16 pm #1655253CedricHi Ying,
Thanks for the reply, I tried to change the setting you mentioned but it ends up changing the background color of the menu names, almost like a highlight for just the words. Please see the screenshot,
February 11, 2021 at 10:45 pm #1655304ElvinStaffCustomer SupportHi there,
Try this:
nav#sticky-navigation.sticky-navigation-transition { background-color: #d1d1d1 padding: 30px 0; }
The padding is optional. It was added so the sticky nav doesn’t look too thin and weird.
February 11, 2021 at 11:25 pm #1655335CedricI apologize I am probably not being specific enough, I will do my best to explain in detail what I am trying to achieve. I need the main and sticky menu to be the exact same.
February 12, 2021 at 10:12 am #1656171YingStaffCustomer Support1) The main navigation is located in header, so its background color can be set at customizer > colors > header > background color.
2) Add a logo at customizer > layout > sticky navigation > Sticky Navigation Logo.
3) Go to customizer > layout > header > Use Navigation as Header.
Set sticky navigation menu item height the same as primary navigation.
https://docs.generatepress.com/article/navigation-as-a-header/Let us know how it works.
February 12, 2021 at 12:40 pm #1656300Cedriccustomizer > colors > header > only shows Site Title color and no background color. Here is a screenshot: https://imagebin.ca/v/5rXejV53BUTv
Also when I enabled Use Navigation As Header, the main menu background color disappears and just shows titles like this
https://imagebin.ca/v/5rXg0ntFxFhHFebruary 12, 2021 at 1:56 pm #1656362YingStaffCustomer SupportOh yes, if you enabled use navigation as header, the color options will be gone π
Have you set the menu item background color at customizer > colors > primary navigation > Parent Items > background color?
If you set the color and it doesn’t work, check your Page hero color settings at appearance > elements, find the header element you are using for front page.
Let me know π
-
AuthorPosts
- You must be logged in to reply to this topic.