Color lines on banners

Topic summary

A Shopify store owner noticed unexpected colored lines appearing on banner sections, particularly on the homepage newsletter area, without making any configuration changes.

Proposed Solutions:

Multiple developers offered CSS-based fixes:

  • Option 1: Add custom CSS code to theme.liquid file above the </body> tag
  • Option 2: Insert CSS into main.css (or base.css/style.css) targeting specific section IDs with height and display properties
  • Option 3: Add code to theme.liquid before the </head> tag

Key Issue:

The original poster clarified that the background image should fill the space, but a colored line appears instead of the expected image coverage.

Status:

One responder noted that lines still appear below banners on product pages, suggesting the issue may require additional troubleshooting beyond the initial solutions provided. The discussion includes code snippets and screenshot references to illustrate both the problem and proposed fixes.

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

Hi, for some reason I started to see color lines like the green one on my banners without changing the settings.

I think it is a bug. Can anyone help?- this is from my homepage newsletter section

https://fh3m1k6uop75o7f1-66575565096.shopifypreview.com

3 Likes

Hey @Daniel19901

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

Hi @Daniel19901

Check this one.

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

div#shopify-section-template--22442120413510__section_newsletter_KzDPwc #contact_form > fieldset > figure > picture > img {
    height: 100% !important;
}

And Save.

Result:

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

@Moeed the problem is that the background used to cover this space and now it is this color instead. the image should be unitl there

  • Here is the solution for you @Daniel19901
  • Please follow these steps:
  1. Go to Online Store → Theme → Edit code.
  2. Open your theme.liquid file
  3. In theme.liquid, paste the below code before and press ‘Save’ to save it

  • Here is the result you will achieve:

  • Please press ‘Like’ and mark it as ‘Solution’ if you find it helpful. Thank you.

@Daniel19901 , I see there are still a line below your banner in your product page

You could add this code to remove it.


Result: