- This topic has 11 replies, 2 voices, and was last updated 2 years, 4 months ago by Elvin.
-
AuthorPosts
-
December 5, 2021 at 11:42 pm #2039613Nico
Hi There!
The size of the logo is changing at mobile view (fixed header) if we scroll down as you can see at the vid here:
how can we fix the problem
thnx for helping
NickDecember 5, 2021 at 11:54 pm #2039619ElvinStaffCustomer SupportHi Nick,
Can you view the front-end of the site? To observe it’s behavior and provide CSS write-up so the size get retained when the header is in sticky mode.
You can provide the necessary details on the private information text field. Let us know. π
December 6, 2021 at 12:07 am #2039628NicoHi Elvin. Thnx for reply. I’m not sure if I understand “Can you view the front-end of the site” right.
Does it mean to post the link to the test page as you can see it here?
December 6, 2021 at 12:15 am #2039630ElvinStaffCustomer SupportDoes it mean to post the link to the test page as you can see it here?
That’s right. And thanks. I’ve inspected the page. π
Try adding this CSS:
.main-navigation.sticky-navigation-transition .site-logo img { height: 65px; }
This should force the logo size to be retained on sticky mode. π
December 6, 2021 at 12:42 am #2039642NicoHello Elvin, I think the snippet almost solves the problem. But if you look closely at the text “Menu” while scrolling in the mobile view, you can see that it is moving. Something doesn’t really fit there yet.
Can you see it?
December 6, 2021 at 12:51 am #2039649ElvinStaffCustomer SupportIt’s very subtle but I see what you mean.
Can you try setting the transition to “none” on Appearance > Customize > Layout > Sticky Navigation and see if it achieves the desired result?
December 6, 2021 at 1:02 am #2039658NicoNope. Problem is not solved.
Yes, I agree with you, it’s very subtle. However, we are working on this project for a customer and they always look very carefully. Sorry for that Elvin.
December 6, 2021 at 1:21 am #2039671ElvinStaffCustomer SupportYou can try adding this in for the menu text:
nav#mobile-header button.menu-toggle { transition: none !important; } nav#mobile-header.sticky-navigation-transition button.menu-toggle { line-height: 65px; }
As for the entire header itself, that’s from having “none” for transition. Consider using fade for a less jarring transition between sticky and static header .:D
December 6, 2021 at 7:53 am #2040178NicoElvin your snippet is working. However, it only works as long as the height of the mobile menu is 65 pixels. Could it be that GeneratePress has a bug per se and that you/we should open a ticket in the development department for the “real solution”? What do you think?
December 6, 2021 at 6:51 pm #2040640ElvinStaffCustomer SupportNot exactly sure it can be classified as a bug as the function is intact. But it can be confusing at times though.
Actually, we can skip the CSS if we want. (This is actually the optimal solution. My apologies on skipping this one)
If you set
Menu Item Height
set onAppearance > Customize > Layout > Primary Navigation
equal to theMenu Item Height
set onAppearance > Customize > Layout > Sticky Navigation
the sizing should be intact when it goes to sticky mode.The difference between the values of the 2 is actually what’s changing the size on transition. If it’s equal then the sizing won’t change.
December 7, 2021 at 12:11 am #2040811NicoGood morning Elvin!
That was the problem. Thank you very much.
Don’t apologize, the GP support is really great.
I think we can close the ticket.
Greetings from Germany
NickDecember 7, 2021 at 12:16 am #2040820ElvinStaffCustomer SupportGlad you got it sorted. No problem. Stay safe! π
-
AuthorPosts
- You must be logged in to reply to this topic.