Seeks help reducing excessive vertical padding around the homepage logo/header on mobile only; desktop layout should remain unchanged. The goal is to decrease the space above and below the logo on phones.
Attempts: Tried multiple CSS overrides (custom styling rules) added to both the section CSS and base code, but changes didn’t take effect. The author is fairly new to Shopify.
Context provided: Shopify preview URL and password, and a suspected section ID (shopify-section-template–19161912344748__section_Fh7TFQ). A screenshot illustrates the extra whitespace around the logo on mobile.
Status: No solution yet; requesting guidance on the correct CSS approach to target and reduce mobile header/logo spacing only.
Hoping someone can help me reduce the vertical padding on my homepage header / logo banner on mobile only.
I’m trying to make the space above and below the logo smaller on mobile, as there’s currently a lot of empty space. Desktop is fine, I only want this to affect mobile.
I’ve tried a few CSS overrides (added to both section CSS and base code) but haven’t been able to get it to respond yet.
Hi! Thank you for this suggestion, i had been going around in circles and was convinced it was the section padding - I set it to auto and just added some padding above/below the logo. Thank you!!
Hi, I hope you’re doing great.
Please open your theme, go to Edit Theme, then locate and click on the logo section. After that, open Custom CSS and add this line there,
then check the result. I hope the shadow will be removed, but if you still notice the shadow, please let me know and I’ll share a more detailed solution.