- This topic has 9 replies, 4 voices, and was last updated 4 years ago by
Leo.
-
AuthorPosts
-
February 27, 2019 at 2:47 pm #823830
Derek
My apologies if this has been answered before. I’ve spent the last several hours trying to find a solution on the forums, but everything I have come across doesn’t quite work.
I am trying to customize the mobile header to:
1) Left align the hamburger menu
2) Center align the mobile logo, while also having it be very small (height of around 20px). When I select a very small logo it seems to disregard the image and make it larger.
3) Have a search bar float on the right (this is a nice to have, if it’s too complex I can live without it)
Here is what I am attempting to create – https://i.imgur.com/PMECyBV.jpg
Thanks in advance for your help!
GeneratePress 2.2.2February 27, 2019 at 5:54 pm #823943Leo
StaffCustomer SupportHi there,
Can you activate the navigation search first?
Then we should be able to rearrange the items in the mobile header.
Let me know ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 27, 2019 at 11:09 pm #824080Derek
Thanks, Leo.
I have activated it.
February 28, 2019 at 3:21 am #824247David
StaffCustomer SupportHi there,
try this CSS:
#mobile-header .menu-toggle { order: -1; margin-right: auto; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 28, 2019 at 10:35 am #824799Derek
Thanks, David! The menu, logo, and search are now ordered correctly.
One last small issue that I cannot seem to solve…
When I set the logo within the mobile header:
1) if I use my higher resolution logo (200x34px) it breaks the nav and pushes the search to line 2
or
2) if I use a lower resolution logo (100x17px) it is heavily pixelated.How can I get a non-pixelated logo that doesn’t push the search to line 2?
Thanks!
February 28, 2019 at 2:19 pm #825005David
StaffCustomer SupportBest thing would be to use an SVG image. You need the Safe SVG or SVG Support plugin to install one.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/March 1, 2019 at 11:52 am #825935Derek
Okay, I’ve got an SVG in there. But it’s still bumping the search to a 2nd line.
Looks like I might can do it by changing mobile header height to less than 60px, is that the best solution? or something else you’d recommend?
.mobile-header-navigation .mobile-header-logo img { height: 55px; }
March 1, 2019 at 11:28 pm #826227Tom
Lead DeveloperLead DeveloperIf it works with the design, then that CSS should be fine ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMarch 2, 2019 at 1:42 pm #826830Derek
Sounds good!
Thank you Tom, David, & Leo. I appreciate the help.
As a brief aside…I am coming over from building on Divi over the last 5 years (on multiple projects).
While this transition has been a nightmare (thanks to Divi), I cannot tell you how refreshingly optimized GP is. This is without question the best theme I’ve ever built on.
March 2, 2019 at 7:11 pm #826960Leo
StaffCustomer SupportGlad we could help!
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.