How can I effectively decrease padding within my theme?

Topic summary

Goal: Reduce excessive padding/spacing in specific areas of a Shopify theme (areas indicated in attached screenshots and a preview link).

Proposed fixes (CSS-based, mobile-focused):

  • Approach 1 (small screens ≤430px): Add a media query that sets .homepage-featured-content-box-inner.wow.fadeInUp { padding: 5px; }. Separately, reduce bottom spacing with .homepage-sections-wrapper.homepage-sections-wrapper–white { padding-bottom: 10px; }.
  • Implementation steps: Online Store → Themes → Edit code → Assets → open theme.css/styles.css/base.css, paste CSS at the bottom, and save.
  • Approach 2 (mobile ≤767px): Add to the bottom of theme.min.css a media query targeting .shopify-section .homepage-sections-wrapper { padding-bottom: 15px !important; }.

Notes:

  • “Padding” is the internal spacing inside an element; “media query” applies CSS rules at defined screen widths, focusing here on mobile.
  • Screenshots are used to identify the exact areas to tighten spacing; no code snippets beyond CSS are required.

Status: No confirmation of results yet; one responder offered further reductions if needed. The thread remains open/unresolved.

Summarized with AI on January 26. AI used: gpt-5.

Trying to remove some padding within my theme and wondering how to do so.

Screenshots are attached for spaces I would like to decrease in padding.

https://8swcg7igixe5a2lp-60882223346.shopifypreview.com

1 Like

Hi @GildedSocial ,

I understand that you want to reduce the padding of the specific are of your store.

Try this.

  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 “theme.css, styles.ccs or 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.
@media only screen and (max-width: 430px) {
.homepage-featured-content-box-inner.wow.fadeInUp {
    padding: 5px;
}
}
.homepage-sections-wrapper.homepage-sections-wrapper--white {
    padding-bottom: 10px;
}

Hi @GildedSocial

I hope you are doing good and welcome to the Shopify Community!
I am San from MS Web Designer.

Please add this css in your bottom of the theme.min.css file:

@media only screen and (max-width: 767px){

.shopify-section .homepage-sections-wrapper {padding-bottom: 15px !important;}

}

Regards,

San