All things Shopify and commerce
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
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/
Solved! Go to the solution
This is an accepted solution.
Your theme has a CSS rule that adds margin-bottom to the div element with the class page-head.
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.
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>
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
This is an accepted solution.
Your theme has a CSS rule that adds margin-bottom to the div element with the class page-head.
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.
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>
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.