Archived topic
How to can I have a header like this ?
8 replies · Started by Cristiano on August 29, 2021
Hello everyone!
I'm trying the same effect as this site below, but I'm failing somewhere, could you help me:

This site uses a logo (262 x 45) centered at the top,
Below is also a centralized menu,
Shifted to the left side appears the search button
When scrolling down:

60 px height
The logo (now appears 165x30 in size) is shifted to the right account,
In the space between the logo and the menu, a small line appears
The menu appears shifted to the left
Shifted to the left side appears the search button
When hovering over the menu items they gain a red colored bottom

In the Mobile version the logo appears centralized

I used the sticky navigation function right away, but what I got is this below:

AND

Could you help me get a header similar to this site:
I sent my demo site and inspiration site in the sensitive area.
thank you very much for your attention
Hi there,
Let's take care of one question per topic.
Can you add this CSS below and see if this takes of the navigation icon location requirement?
@media (min-width: 769px) {
.main-navigation .menu-bar-items {
position: absolute;
right: 0;
}
.nav-align-center.main-navigation.navigation-stick .inside-navigation {
justify-content: flex-start;
}
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Hi,
It works, when I'm using full screen, but when editing with customize, it looks like this:

Hmm let's try the edited CSS here:
https://generatepress.com/forums/topic/how-to-can-i-have-a-header-like-this/#post-1912100
Hi, It works, Thanks!!

These are my current settings, maybe they can help next...


Hi, the search button has been resolved, I'm waiting for the other points, thanks!
When scrolling down, my site's sticky navigation function looks like this:

I would like it to look like this:

My website logo when I activate the sticky navigation function, it gets distorted, The inspiration site logo, resize (now appears 165×30 in size) and is shifted to the tip
In the space between the logo and the menu, a small line appears
The menu appears shifted to the tip and the search button to the other tip
When hovering over the menu items they gain a red colored bottom
I've added another snippet to the previous CSS here:
https://generatepress.com/forums/topic/how-to-can-i-have-a-header-like-this/#post-1912100
Thank you very much, it worked perfectly! I'll finish this topic another day, open the other one with the remaining requests.
Sounds good thanks!