- This topic has 10 replies, 3 voices, and was last updated 4 years, 1 month ago by
Douglas.
-
AuthorPosts
-
February 23, 2019 at 5:39 am #818625
Douglas
I’m using the CSS offered in the support documentation to center my logo in the primary navigation header (https://docs.generatepress.com/article/centering-logo-navigation/).
However, when using the navigation search feature, the centered logo remains visible and clickable, even though the rest of the menu recedes. The logo does not have this problem when the centering CSS is not present. What is the best way to resolve this?
GeneratePress 2.2.2GP Premium 1.7.8February 23, 2019 at 9:01 am #818920Tom
Lead DeveloperLead DeveloperHi there,
Any chance you can link us to your site so we can see the issue? You can edit your post to include your link privately.
Let me know 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentFebruary 24, 2019 at 12:27 pm #820002Douglas
Sorry about the delayed response; I had the dev site on a local environment, but I’ve moved it to an online staging site. I’ve added a URL to the original post.
February 24, 2019 at 2:39 pm #820087David
StaffCustomer SupportHi there,
you can edit this CSS you added:
.site-branding, .site-logo { position: absolute; left: 50%; -webkit-transform: translateX(-50%); transform: translateX(-50%); z-index: 200; }
And reduce the
z-index
to15
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 24, 2019 at 4:03 pm #820131Douglas
Thank you!
February 24, 2019 at 5:14 pm #820156David
StaffCustomer SupportYou’re welcome
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 24, 2019 at 5:19 pm #820158Douglas
One more question that has me stumped… I’ve been messing around with the CSS and can’t figure this out. I tried to increase the page width that triggers the mobile header up to 960px (in order to avoid a collision between the logo and the menu items). However I’m now in a situation where there are two navbars when the width falls anywhere between 768px and 960px, and I cannot figure out how to resolve this.
February 24, 2019 at 6:10 pm #820184David
StaffCustomer SupportTry this:
@media (max-width: 960px) { #primary-menu { display: none; } }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 25, 2019 at 12:46 am #820376Douglas
I had tried that; the problem is that breaks the menu toggle between 768px-960px; now clicking on the mobile menu doesn’t do anything.
Also it’s odd that the menu button is on the left side above 768px, and switches to the right side below 768px.
February 25, 2019 at 5:20 am #820692David
StaffCustomer SupportSorry my bad – try this CSS for adjusting the breakpoint:
https://gist.github.com/generatepress/282078076cd8631c17717d5b8640c043
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 25, 2019 at 1:00 pm #821339Douglas
Works perfectly! Thanks again.
-
AuthorPosts
- You must be logged in to reply to this topic.