All things Shopify and commerce
Hi,
I add a custom liquid section in product page for displaying the product description below the Product information section.However, there are white spaces or margins between image in description(rich text).
My product page url: Product page preview
Using Dawn 12.0.0 theme and the custom liquid code below:
<div class="page-width">
<div class="rte">
<h2>Product Detail</h2>
{{product.description}}
</div>
</div>
How can I remove the spaces or margins ?
I have searched and tried some method in other topic in community,but it did not work.
Thanks 🙏
Solved! Go to the solution
This is an accepted solution.
Please update your code to this
<div class="page-width">
<style>
.rte img {
margin-bottom: 0 !important;
display: flex;
flex-direction: column;
box-shadow: unset !important;
border: unset !important;
}
</style>
<div class="rte">
<h2>Product Detail</h2>
{{product.description}}
</div>
</div>
- Found this helpful? Hit "Like" and "Accept as Solution"! Support me: Donate!
- 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.
Hi @ERCC
This is Henry from PageFly - Landing Page Builder App
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file base.css
Step 3: Paste the below code at bottom of the file -> Save
@media (max-width: 767px){
.t4s-product__description.t4s-rte p:last-child {
line-height: 0 !important;
}
.t4s-product__description.t4s-rte p:last-child img {
margin-bottom: 0 !important;
border: 0 !important;
}}
Hope that my solution works for you.
Best regards,
Henry | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
Thank you for the help
You are welcome 😊 @ERCC
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
This is an accepted solution.
Please update your code to this
<div class="page-width">
<style>
.rte img {
margin-bottom: 0 !important;
display: flex;
flex-direction: column;
box-shadow: unset !important;
border: unset !important;
}
</style>
<div class="rte">
<h2>Product Detail</h2>
{{product.description}}
</div>
</div>
- Found this helpful? Hit "Like" and "Accept as Solution"! Support me: Donate!
- 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.
It work!
Thanks again❤️
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025