How can I reduce header and footer padding in Loft Theme?

Topic summary

A user seeks to reduce header and footer padding in the Shopify Loft Theme for both desktop and mobile versions. Two solutions are provided:

Footer Padding Fix:

  • Navigate to Shopify admin → Online Store → Themes → Edit code
  • Open the base.css file in the Assets folder
  • Add CSS targeting .footer__content.grid--full and .footer-block__wrapper with padding-top: 0px and padding-bottom: 0px
  • Include media query @media only screen and (max-width: 768px) for mobile adjustments

Header Padding Fix:

  • Access Theme.css in Assets folder
  • Add CSS for .header__wrapper and .pre-header__wrapper with padding: 0px 4% using !important flag
  • Apply media query @media screen and (min-width: 769px) for desktop

Resolution: The issue was successfully resolved using the provided CSS modifications.

Summarized with AI on November 19. AI used: claude-sonnet-4-5-20250929.

Hi there!

I was wondering how I can reduce the header and footer padding (both desktop and mobile website) with the Loft Theme.

Any help would be grate. Thanks in advanced!

1 Like

Hi @AlbertPala ,

Would you mind to share your URL websie with password if its protected? Thanks!

1 Like

Hi @Made4uo-Ribe ,

Thanks for your interest. Yes, sure, here the URL:

https://www.automotiveicons.com/

Thanks in advanced!

1 Like

Thank you for the Information, the header seems good on my screen.

Try this for the footer:

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. In the “Assets” folder, click on “base.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
  4. And Save.
.footer__block-wrapper {
    padding-top: 0px;
    padding-bottom: 0px;
}

Result:

This will also decrease on the mobile but if not enough you add this one.

@media only screen and (max-width: 768px){
.grid--full.footer__content {
    padding-bottom: 0px;
}
.subsection__wrapper {
    padding-top: 0px;
}
}

Result mobile:

I hope it help.

Hi @AlbertPala

This is Richard from PageFly - Shopify Page Builder App, I’d like to suggest this idea:

Online Store ->Theme ->Edit code

Assets ->Theme.css

.header__wrapper, .pre-header__wrapper {
    padding: 0px 4% !important;
}
@media screen and (min-width: 769px){
.footer__block-wrapper {
    padding: 0px 4% !important;
}
}

Hope you find my answer helpful!

Best regards,

Richard | PageFly

Thanks a lot, it worked!

1 Like

Glad to hear that, your welcome. :blush: