Unwanted gap between header and featured product

Solved

Unwanted gap between header and featured product

Sammy113
Tourist
8 0 4

Hey everyone,

 

Ive got this unwatned gap between my header and feature product.

I've tried all the layout settings but hasn't changed anything and ive tried a few codes i've found on here but nothing works.

 

It's the small green section I'm trying to get rid of!

https://1xes1x-bj.myshopify.com/

 

Thank you!

 

 

Accepted Solution (1)

LizHoang
Shopify Partner
1251 159 196

This is an accepted solution.

Hi @Sammy113 

You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file base.css and add this code at the end of the file

 

@media (min-width: 768px) {
    html .section-header {
        margin-bottom: 0 !important;
    }
}

 

Best,

Liz

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program

View solution in original post

Replies 4 (4)

Dan-From-Ryviu
Shopify Partner
11406 2238 2411

You added this code somewhere in theme.liquid or header.liquid file, which caused the issue.

@media screen and (min-width: 750px) {
    .section-header {
        margin-bottom: 24px;
    }
}

Please remove this code. If you cannot find and remove it, please add this code to your theme.liquid file 

<style>
@media (min-width: 750px) {
    html .section-header {
        margin-bottom: 0;
    }
}
</style>

 

- Found this helpful? Hit "Like" and "Accept as Solution"!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify

Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.

oscprofessional
Shopify Partner
16344 2438 3180

Hi @Sammy113 ,

Go to Online Store > Themes > Actions > Edit Code > base.css

Add below code at the bottom of  base.css  file

@media screen and (min-width: 750px) {
  body .shopify-section-group-header-group.section-header {
    margin-bottom: 0 !important;
  }
}

 

Hire us | Pass Core Web Vital | B2B Wholesale Experts | Claim Your Free Website Review |
Connect with Us: WhatsApp | Skype: oscprofessionals-87 | Email: pallavi@oscprofessionals.com |
Custom Shopify SolutionsPrivate Apps, Theme Customization & SEO | Digital Marketing |
OSCP Apps: Discount Suite | Wholesale App | Bundle & Upsell | Shipping Discount | and more...

LizHoang
Shopify Partner
1251 159 196

This is an accepted solution.

Hi @Sammy113 

You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file base.css and add this code at the end of the file

 

@media (min-width: 768px) {
    html .section-header {
        margin-bottom: 0 !important;
    }
}

 

Best,

Liz

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program
Sammy113
Tourist
8 0 4

Thank you so much!! This worked perfectly!