Removing gap/space between images in product description

Solved

Removing gap/space between images in product description

thekidreyz
Tourist
10 0 1

Last couples days I've been trying so hard to find how to remove gap/space between product description images on product page but none of them worked. I will be glad if anyone help me out here

URL: https://critterlamp.com/products/dodo-duck-night-light

Screenshot_20240506_001121_Samsung Internet.jpg

Accepted Solution (1)
PageFly-Noah
Shopify Partner
1317 233 272

This is an accepted solution.

Hi @thekidreyz  please add code here in file theme.liquid and above tag </body>:

<style>
 .product__description p img{
    margin-bottom: -15px !important;
 }
</style>

 

Screen Shot 2024-05-06 at 13.41.41.png

Thank you ! 

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.

View solution in original post

Replies 11 (11)

PageFly-Noah
Shopify Partner
1317 233 272

This is Noah from PageFly - Shopify Page Builder App

I can help you. Please can you provide password in your url website. Thank you.

 

Best regards,

Noah | 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.

thekidreyz
Tourist
10 0 1

It is euiseok0201

Thanks ahead!

PageFly-Noah
Shopify Partner
1317 233 272

This is an accepted solution.

Hi @thekidreyz  please add code here in file theme.liquid and above tag </body>:

<style>
 .product__description p img{
    margin-bottom: -15px !important;
 }
</style>

 

Screen Shot 2024-05-06 at 13.41.41.png

Thank you ! 

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.

thekidreyz
Tourist
10 0 1

Thank you so much! It worked perfectly :)))

 

PageFly-Noah
Shopify Partner
1317 233 272

Thank you, have a nice day !

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.

thekidreyz
Tourist
10 0 1

If you don't mind can you help with removing side margin for mobile view too?

Screenshot_20240507_103546_Samsung Internet.jpg

PageFly-Noah
Shopify Partner
1317 233 272

Hi @thekidreyz  Yes sure, Please add code here:

<style>
 .product__description p img{
    margin-bottom: -15px !important;
 }
 .product__description:has(img){
    margin-left: -15px !important;
 margin-right: -15px !important;
 }
</style>

Thank you !

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.

niraj_patel
Shopify Partner
2378 514 512

hello @thekidreyz 

Password?

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- [email protected]
thekidreyz
Tourist
10 0 1

It is euiseok0201

Thanks ahead:)

Vinsinfo
Shopify Partner
426 143 142

@thekidreyz Please follow below steps to remove space/gap between images in product description. Let me know whether it is helpful for you.

 
1. From admin go to "Online stores" -> "Themes"
2. Click action button from the current theme and select "Edit code".
3. Search for "base.css" file and paste the below code at the bottom of the file.

 

.product__description img {
    display: block !important;
    margin: 0px !important;
}

 

Vinsinfo_1-1714976833126.png

 

 

Result will be like,
Vinsinfo_0-1714976828560.png

 

 
Please provide your support by click "Like" and "Accepted" if our solution works for you. Thanks for your support.
Please reach out to [email protected] for any enquires related to Shopify.
Our Services: Custom Theme Development, Theme Customization, Custom Feature Implementation, Data Migration, Custom APP Development, Website Optimization and Google Merchant Center Support

BSSCommerce-B2B
Shopify Partner
1729 518 582

Hi @thekidreyz 

Hope the following instructions can help you:

- Based on the images you provided, it seems like you want these adjustments on mobile. Here are the instructions for you to achieve that.

Step 1. Go to Themes -> Edit Code.

1.png

Step 2. "Find the file base.css . Add the following CSS snippet to the end of the file:”

Untitled.png

 

 

@media screen and (max-width: 750px) {
    .product__description p:last-child {
        line-height: 0 !important;
        margin: 0 -1.5rem !important;
        margin-top: -2px;
    }
    .product__description p:last-child img {
        margin: 0;
    }
}

 

 

Here is the result: https://www.loom.com/share/0a9bf54b77264a6298562ddb4dbb44e6 

 

We hope it will work for you. Please vote it as a solution if you find it helpful.

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