I am launching my webbshop in about 24h and one thing is bothering me… I would like to decrease the padding above header image on home page only (!) (it looks like how I want it on the other pages). It is a white padding right now which makes the navigation bar light grey. I want the navigation bar to start where the image starts. I attach two screenshots to show how it looks like now and how I want it to look. (PS. the navigation bar is sticky).
On this picture we can see how the navigation bar looks grey since there is a white padding above the banner image.
This is how I want it to look when landing on my webbshop. In this picture I have scrolled down i bit so that the navigation bar starts where the banner image starts.
I understand you’re looking to decrease the padding above the header on the homepage. Based on the screenshots you’ve provided, I can’t confirm whether this is possible. However, since you’re using a Shopify-supported theme, then this is something that our Theme Support team can look into for you. If your store is subscribed to plan, then you’re eligible to use the complimentary design time included with your subscription on customizing your theme. While we’re not able to provide account-specific support via the Shopify Community at this time, we’d be happy to continue assisting you through live chat, email, or callback. Please visit the Shopify Help Center and log in to your account to create a support request.
I’d love to know if this is something that our Theme Support can help you with. Keep me posted!
This is a quick fix but should do the job. Ideally it should be done via javascript to calculate the height of the header dynamically, this would require more complex work.
It’s worth bearing in mind that your website’s navbar is broken on tablets/small laptops as well:
But oh no I thought I fixed that problem a few days ago with the broken navbar… On the screens I have tried it does not look like that, but I don´t have access to all kinds of screens so that was a very good input you gave me!
Do you also know how I can fix that broken nav bar?
I can see that after I added your first code the padding below header image is now very big instead (see screenshots for comparison). Do you have an idea how to decrease that as well?