Black lines appear around product images - How do I remove them?

I’ve seen a couple of answers to this previously but the remedies do not work for me. Any assistance would be appreciated.

1 Like

Hi @RetroGP , I hope you are doing well.

Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password. Thanks!

Hi @RetroGP ,
Can you kindly share your store link with us? We will check it and suggest you a solution if possible.

Hello @RetroGP
would you like to share your store URL and password if any please.
so i can check and provide you possible solution for your question.

https://www.retrogp.com/collections/birth-marque-champions-of-f1

Thanks for the kind offer to assist but I’m not sharing the password. I’m sire you understand.

Many thanks.

https://www.retrogp.com/collections/birth-marque-champions-of-f1

1 Like

https://www.retrogp.com/collections/birth-marque-champions-of-f1

Thanks Niraj

Hi @RetroGP ,

Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above tag:


Here is result:

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you :heart_eyes:

@RetroGP , I understand. Please try the below code:

.products-grid .grid-item-border .product-image { padding: 12px !important; } .product-image.owl-carousel.owl-theme { border: none !important; }

If my reply is helpful, kindly click like and mark it as an accepted solution.

Thanks!

You can add code by following these steps

  1. Go to Online Store → Theme → Edit code.

  2. Open your theme.liquid file

  3. Paste the below code before on theme.liquid

.products-grid .grid-item-border .product-image{ border: unset !important; padding: 11px !important; }

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Wow…it worked. Gosh that problem has been worrying me for a couple of years. Fantastic. I can’t thank you enough.

Best regards

Andrew

1 Like

Hi @RetroGP ,
We’re happy to see that our suggestion helped you solve the issue. Can you kindly give us a like ? Should you need any further information, please do not hesitate to contact us by tagging directly at Community post.

We will check and let you know soon. Thanks in advance :heart_eyes:

Not so fast lol. Actually what that’s done is remove the thin line from around each product. It looks clean and those rogue black lines have disappeared but as you can see from the Hesketh Racing page, one product outline remains around the phone case (third row down). Is it possible to get those thin outlines around the product listing without the rogue black lines coming back?

https://www.retrogp.com/collections/hesketh-racing-1

1 Like

@RetroGP , Do you mean it like that?

Yes…exactly like that. Possible?

1 Like

Hi @RetroGP , Pls replace old code to new code:


Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you :heart_eyes:

1 Like

That’s the one. Brilliant. Many, Many thanks.

1 Like

@RetroGP , No problem. Have a good day :heart_eyes: