Shopify themes, liquid, logos, and UX
There seems to be spacing between the description block and accordion block since adding a split tag for long description. How can this be removed. I know the id, but ID is NOT changing the space to be even with the other accordion spacing.
Solved! Go to the solution
This is an accepted solution.
@xnyjyh , Add this code to your theme.liquid file before the </body> tag :
<style>
.product__description {
margin-bottom:0 !important;
}
.accordion {
margin-top: 0 !important;
}
</style>
Hi @xnyjyh,
Step 1. Go to Admin -> Online store -> Theme > Edit code
Step 2. Find the file base.css
Step 3. Add this code to the end of file
.product__accordion.accordion {
margin-top: 0px!important;
}
.product__info-container .product__description {
margin-bottom: 0px!important;
}
Result:
If it helps you, please like and mark it as the solution.
Best Regards
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Unfortunately it did not work 😞
This is an accepted solution.
@xnyjyh , Add this code to your theme.liquid file before the </body> tag :
<style>
.product__description {
margin-bottom:0 !important;
}
.accordion {
margin-top: 0 !important;
}
</style>
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025