All things Shopify and commerce
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 and Accept solution!
- 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.
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 and Accept solution!
- 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.
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024