Mobile Header not displaying correctly
-
To preface – I have been searching and searching here and on google for an answer prior to posting:)
I have built a site using the Pique theme – customcontractbrewing.com. All is well except for two things:
1) I want the logo to be “sticky” like the menu so that it will anchor to the top of the page when scrolling
2) the header is a mess in mobile. My logo and menu are on top of my home page content. How can I give the header more room or otherwise modify it? Even if I could remove my H2 from the mobile home page only, I think that would do the trick.
Any wizardry for my Custom CSS? Mobile WP Menu did not help.Thanks in advance for your help!
-
Hi @consumeh!
It looks like you’ve added a style in your CSS to make the logo larger – that’s what’s throwing off the alignment on mobile devices:
.site-logo-link .site-logo { min-height: 200px; }My advice would be to remove that style, and add this to your CSS instead:
@media (min-width: 768px) { .site-branding .site-logo-link img { height: 200px; } }This way you’re overriding an existing style to make the logo larger, and you’re only doing it on large screens. Now you have a nicely aligned header on mobile devices, and a smaller logo (which on mobile is good, since you don’t really have a lot of screen space available to begin with.
For make the logo sticky, can you describe a little more of how you’re picturing that? With a transparent logo like yours, you’d have text going behind the logo and showing through (making both the logo and the text behind it unreadable).
You’d need to add a background behind the logo, which totally changes the look of your header 🙂
I’m not married to that idea. This resizing took care of my issue – thanks.
You’re welcome! 🙂
Feel free to mark this thread as “Resolved” over in the sidebar if you’re all set!
The topic ‘Mobile Header not displaying correctly’ is closed to new replies.
