- This topic has 10 replies, 2 voices, and was last updated 6 years, 8 months ago by Anonymous.
-
AuthorPosts
-
August 3, 2017 at 5:52 pm #359465Anonymous
Hello,
(i just bought the GP theme and am excited about it :))
there was another thread about the problem stated in the subject but I couldn’t reproduce the solution:
I have a transparent header (via “merge header”) on the page.
When I scroll down I want the (sticky) header to get a solid color (white for instance), so you can read the navigation.
I tried playing around with “sticky navigation” in the customization, but this did not change any behaviour – the sticky header remained transparent.
How can I solve this?
Thanks!
August 3, 2017 at 6:51 pm #359471LeoStaffCustomer SupportHi there,
Can you try this CSS?
.main-navigation.navigation-stick { background-color: #ffffff; }
Adding CSS: https://docs.generatepress.com/article/adding-css/
If this doesn’t work are you able to provide a link to your site? Thanks!
August 4, 2017 at 12:14 pm #359829AnonymousYes that worked, thanks! (btw I had to move away from “merge header”, that messed everything up, I just set the color of the header to transparent.
Now one more problem: the logo in the header “disappears” – this should also remain sticky like the navigation – how would I go about that?
August 4, 2017 at 12:15 pm #359830LeoStaffCustomer SupportTry the navigation logo feature: https://docs.generatepress.com/article/navigation-logo/
August 4, 2017 at 2:57 pm #359886AnonymousOk nearly there :)) – now the logo is also in the sticky, and in the sticky it is where it should be (to the left of the screen), but in primary navigation the logo is not to the left of the screen but right next to the left edge of the text of the navigation.
So when the menu switches from “primary” to “sticky” the logo jumps round from left to right.
How can I make the logo appear in the same position as it does in the sticky menu?
August 4, 2017 at 3:31 pm #359907LeoStaffCustomer SupportTry changing the inner navigation width to contained: https://docs.generatepress.com/article/navigation-layout/#inner-navigation-width
August 4, 2017 at 4:35 pm #359925AnonymousIt’s already on contained.
I inspected the html during scrolling, and here’s where a difference popped up in the element with “id”:
sticky-placeholderstyle attribute of id above with sticky:
visibility: hidden; float: right; display: block; width: auto !important;width:auto !importantstyle attribute of id above with primary nav header:
visibility: hidden; float: right; display: none; width: auto !important;the difference is display: block vs disply: none ->
so I would have to get the normal header (non sticky) to also do display: block I guess?How can I achieve that?
August 4, 2017 at 4:58 pm #359927LeoStaffCustomer SupportCan you link me to the page?
August 5, 2017 at 2:40 am #360092AnonymousCan I pm you the link?
August 5, 2017 at 8:54 am #360169LeoStaffCustomer SupportYup you can send it through Account Issue: https://generatepress.com/contact/
Just mention the topic.
Thanks!
August 5, 2017 at 11:35 am #360221Anonymousok thanks!
-
AuthorPosts
- You must be logged in to reply to this topic.