Desktop background colour is correct but its a different colour on mobile. How to fix?

Topic summary

A user encountered a color inconsistency where their desktop background displays correctly but appears different on mobile devices.

Initial Solution:

  • A helper provided CSS code to be added to the theme.liquid file above the </body> tag
  • This code targeted the header background color using !important declarations
  • The first attempt only fixed the top portion, not the bottom

Updated Fix:

  • An revised CSS snippet was provided to address the incomplete fix
  • This successfully resolved the mobile background color issue

New Issue:

  • After implementing the solution, a cream-colored bar now appears under the ‘SHOP NOW’ button
  • The user shared a screenshot showing this unintended visual element
  • The discussion remains open as this secondary problem needs resolution
Summarized with AI on November 5. AI used: claude-sonnet-4-5-20250929.

Can some one help please? I.

1 Like

Hey @saabbb1212

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

THANKYOU -


IT WORKED FOR THE TOP BUT NOT THE BOTTOM :disappointed_face:

1 Like

Hey @saabbb1212

Remove the previous code and try this updated code.


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

Best Regards,
Moeed

1 Like

THANKYOU SO MUCH !! :slightly_smiling_face: IT WORKED

1 Like

Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.

OOPS NOW IT HAS THIS CREAM BAR UNDER 'SHOP NOW’BUTTON :disappointed_face: