How can I remove extra spacing between containers?

Solved

How can I remove extra spacing between containers?

usmekhan91
Shopify Partner
38 0 7

Hi Community,

I am puzzled to remove extra spacing between containers, I had tried every option but unable to remove it. Can you help me in this regards?

URL: https://o2hmeyh0ofc3kmpg-61554688170.shopifypreview.com/

usmekhan91_0-1700572594222.png

 

 

Accepted Solutions (2)

Hallway
Shopify Partner
24 3 8

This is an accepted solution.

Your theme has a CSS rule that adds margin-bottom to the div element with the class page-head.

 

Hallway_0-1700573779540.png

 

The CSS rules are defined in assets/heading-template.css as follows:

 

.page-head {
  padding: var(--space-padding-mb) 0;
  margin-bottom:var(--space-mg-mb);
}

@media (min-width: 768px){
  div.page-head {
    padding: var(--space-padding-dk) 0;
    margin-bottom:var(--space-mg-dk);
  }
}

 

One way to adjust this would be to add custom CSS to your store in Theme Customiser. You could add the below code to remove the margin.

 

.page-head {
  margin-bottom: 0;
}

@media (min-width: 768px){
  div.page-head {
    margin-bottom: 0;
  }
}

 

Alternatively, you could add the CSS above to the bottom of the assets/heading-template.css file in your theme.

Matthew Hall - Founder @ Hallway
Shopify design, build, optimisation, support & consultancy
→ Was my reply helpful? Click Like to let me know!
→ Did I solve your question? Mark it as an Accepted Solution!

View solution in original post

Dan-From-Ryviu
Shopify Partner
9192 1840 1873

This is an accepted solution.

Hi @usmekhan91 

You can remove this space by adding this code to your theme.css file before </head> tag in Online store > Themes > Edit code 

<style>
#shopify-section-template--16230291669162__heading_template div.page-head { margin-bottom: 0px; }
.t4s-desc-collection { margin: 0px !important; }
.t4s-collection-header { margin-top: 0px !important; }
</style>

Screenshot_5.jpg

- Helpful? Like and Accept solution! - Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

View solution in original post

Replies 2 (2)

Hallway
Shopify Partner
24 3 8

This is an accepted solution.

Your theme has a CSS rule that adds margin-bottom to the div element with the class page-head.

 

Hallway_0-1700573779540.png

 

The CSS rules are defined in assets/heading-template.css as follows:

 

.page-head {
  padding: var(--space-padding-mb) 0;
  margin-bottom:var(--space-mg-mb);
}

@media (min-width: 768px){
  div.page-head {
    padding: var(--space-padding-dk) 0;
    margin-bottom:var(--space-mg-dk);
  }
}

 

One way to adjust this would be to add custom CSS to your store in Theme Customiser. You could add the below code to remove the margin.

 

.page-head {
  margin-bottom: 0;
}

@media (min-width: 768px){
  div.page-head {
    margin-bottom: 0;
  }
}

 

Alternatively, you could add the CSS above to the bottom of the assets/heading-template.css file in your theme.

Matthew Hall - Founder @ Hallway
Shopify design, build, optimisation, support & consultancy
→ Was my reply helpful? Click Like to let me know!
→ Did I solve your question? Mark it as an Accepted Solution!

Dan-From-Ryviu
Shopify Partner
9192 1840 1873

This is an accepted solution.

Hi @usmekhan91 

You can remove this space by adding this code to your theme.css file before </head> tag in Online store > Themes > Edit code 

<style>
#shopify-section-template--16230291669162__heading_template div.page-head { margin-bottom: 0px; }
.t4s-desc-collection { margin: 0px !important; }
.t4s-collection-header { margin-top: 0px !important; }
</style>

Screenshot_5.jpg

- Helpful? Like and Accept solution! - Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.