- This topic has 25 replies, 3 voices, and was last updated 5 years, 1 month ago by Leo.
-
AuthorPosts
-
March 19, 2019 at 2:53 pm #843854Terence
Thanks Leo but in the end it took me about 5 minutes to set up and get right first time using Elementor what had taken me several hours of trying with GeneratePress.
I think the fundamental issue comes down to the fact that there’s an issue with GeneratePress which means that the same image is presented differently (at two different sizes) in the same location, depending on which part of GeneratePress is presenting it, and with no fine grain support provided except reverting to CSS to control it.
OK, no problem, got there in the end.
March 19, 2019 at 3:02 pm #843862LeoStaffCustomer SupportBut look at how much code it is needed for a simple navigation like that with Elementor:
https://www.screencast.com/t/JXlzBHIzIf you don’t want to use CSS, then all you need to do is to have a logo image 60px in height if you want to use menu item height of 60px.
March 20, 2019 at 5:04 am #844315TerenceHmm, not good. Better to resize the image with a transparent background I guess. I’ll give that a try.
March 25, 2019 at 12:34 pm #849548TerenceNothing I do seems to make any difference.
It seems such a simple task and I don’t see why it has to be so difficult.
All I want is the same size logo on my main menu and my sticky menu.
Why is it so complicated to achieve in GeneratePress?
March 25, 2019 at 12:45 pm #849562LeoStaffCustomer SupportIt shouldn’t be very difficult – at least other users have found the solution quite easy to follow.
You should be able to achieve by going through the steps here (which is currently not implemented):
https://docs.generatepress.com/article/navigation-as-a-header/#basicThen make sure that the menu item height and sticky navigation menu item height is exactly the same:
https://docs.generatepress.com/article/menu-item-height-width/#height
https://docs.generatepress.com/article/sticky-navigation/#menu-item-heightWe’ve also made the process even simpler by adding the option Use navigation as header in the next version of GP premium which is currently in Alpha testing if you are interested:
https://generatepress.com/gp-premium-1-8/March 25, 2019 at 5:07 pm #849774TerenceHaving carefully re-read those docs I now see what I was doing wrong and I also missed the part about using an element to hide the original header. Its not exactly intuitive, still it all worked and I have a navigation logo that doesn’t resize.
Many thanks.
March 25, 2019 at 5:40 pm #849788TerenceThe problem now is that the navigation logo is only 166px wide instead of 250px in both menus.
And it doesn’t matter that I change the height in either the sticky or the primary navigation.
A simple thing like this really shouldn’t be so complicated.
March 25, 2019 at 5:48 pm #849791TerenceOK, I found the first problem and it was this little bit of code you gave me yesterday. When I removed it everything started working again.
Now I am left with one remaining problem.
When I scroll back to the top of the page there’s a single pixel line full with along the bottom of the menu. Its like a hair line separating the menu from the body. I’ve tried to find it and hide it but my CSS skills aren’t good enough.
Can you help?
March 25, 2019 at 6:01 pm #849796LeoStaffCustomer SupportTry this CSS:
.sticky-enabled .main-navigation.is_stuck { box-shadow: none; }
March 25, 2019 at 6:31 pm #849815TerenceThat’ll do nicely Leo. Thank you very much.
March 25, 2019 at 8:33 pm #849856LeoStaffCustomer SupportGlad I could help 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.