A black line around a product image on the homepage and product page

Topic summary

A user encountered an unwanted black border appearing around product images on both their homepage and product pages.

Solution Provided:

  • Add custom CSS code to the theme.liquid file
  • Navigate to: Online Store → Theme → Edit code
  • Insert the CSS snippet before the closing tag
  • The CSS targets product images and removes the border styling

Outcome:
The solution successfully resolved the issue. The black border was removed from the product images across the affected pages.

Summarized with AI on November 5. AI used: claude-sonnet-4-5-20250929.

I have a black line around the product images on the homepage and product page, I’d be happy to help

URL- https://fynorix.com/products/smart-home-controller

Hi

  1. Go to Online Store → Theme → Edit code.
  2. Open your theme.liquid file
  3. In theme.liquid, paste the below code before

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

Thanks!

1 Like

Thank you very much for the help

1 Like

@Fynorix glad it worked. Your most welcome!