Small bit of old code displaying on live site

Topic summary

A store owner is experiencing an issue where previously removed CSS code is still appearing on their live site. The unwanted code displays in white text, making it barely noticeable but still present.

Suggested Solutions:

  • Multiple responders recommend checking the theme.liquid file for residual code
  • One user provides specific instructions to search for .search-modal.modal__content in either theme.liquid or footer.liquid
  • The code snippet in question appears to be CSS styling for search modal background colors
  • Suggested fix: Either remove the code entirely or wrap it in proper comment tags (<!-- -->)

Current Status:
The issue remains unresolved. Several users have offered to investigate directly if given store access and collaborator codes. One responder shared a screenshot showing the problematic code location in the theme files.

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

Hello all, we had used a small bit of code when trying to adjust something and now even though removed its displaying on our site. any ideas why? pls see photo

it is white so not overly noticeable but would like to remove

1 Like

Hey @junglecatclub

Try searching for that in your theme.liquid file, you might find it there. If not , then share your store url and collaborator request code with me and I can help you remove it.

Best Regards,

Moeed

Hi @junglecatclub ,
Check your code in the theme.liquid file. It may contain redundant code as you mentione please remove it.

Hi @junglecatclub

Please go to your store admin > Sales channels > Online Store > Themes > click “…” > Edit code > open theme.liquid or footer.liquid file, searching for “.search-modal.modal__content” to find the code like this

.search-modal.modal__content {
    --color-background: 255, 255, 255;
    --gradient-background: #ffffff;
}

Remove it or wrap it into this tags


Hi @junglecatclub

Thank you for reaching out to the Shopify community. I’d be glad to assist you. Could you kindly share your store URL and password (if it’s password-protected) so I can review it and provide you with an update?

Hello @junglecatclub ,

We went through the store design and identified that some unwanted code is there in your “theme.liquid” file or possibly in other files. It seems you may have missed adding the necessary tags. Please ensure the tags are added or remove the unnecessary code.

Let me know if you need further assistance!