I have pasted this code on theme.css
.site-header__logo-image {background-color: #fff !important;}
its fixed on desktop but it is still showing the grey background on mobile
Issue: A Shopify store logo shows a grey background on mobile despite a desktop fix. The merchant added CSS (.site-header__logo-image { background-color: #fff !important; }) which resolved desktop but not mobile.
Key context: The problem appeared after commenting out the search icon in header.liquid using Liquid comments ({% comment %}…{% endcomment %}), which disables code in Shopify templates. After this change, the logo background turned grey on both desktop and mobile; the CSS fix only affected desktop.
Troubleshooting: A helper could not reproduce the grey background on their devices and suggested clearing mobile browser history/cache, which did not help. The original poster later said they found a solution but did not share details.
Community update: A later participant posted a working fix for similar cases: .site-header__logo-image { background: transparent !important; animation: none !important; }. Another user confirmed this resolved the issue when other solutions did not.
Status: Partially resolved. The OP’s exact fix is unknown, but a community-provided CSS (transparent background and disabling animation) is reported to work. Code snippets are central; screenshots were shared but not essential to the outcome.
I have pasted this code on theme.css
.site-header__logo-image {background-color: #fff !important;}
its fixed on desktop but it is still showing the grey background on mobile
Hello…
Please share your store URL and screenshot.
So that I will check and let you know the exact solution here.
screenshot: https://gyazo.com/de3360d502b4ea7e5cc4795023a431e9?token=ac9b7048fe35e9de975dfda7bd5a7ad6
when I have it on my browser, mobile view it isnt there but on my mobile device it is still showing =(
Even I have checked in mobile device.. it is fine.
I let my friend check, he has the same problem
on my 2 mobile devices i have the same problem aswell
I dont know why its showing on some devices and on other devices it doesnt.
can anyone help me here please?
Clean your mobile browser history then check
I already did, it is still buggy
the problem came when I added {% comment %}, {% endcomment %} in header.liquid to remove the search icon, maybe that was the problem?
{% comment %}
{% include 'icon-search' %} {{ 'layout.navigation.search' | t }}{% endcomment %}
Now Is it showing background or not with search code?
when I removed the search icon the background turned grey on desktop and mobile view, then I added the
site-header__logo-image {background-color: #fff !important;}
on theme.css to get rid of the background but it kept showing the grey background on mobile
I found the solution, thanks for your time ![]()
Can you share what your solution was? Having this exact issue.
hi anybody solved?
Do you mind sharing what fixed your issue? I’m having a similar one.
.site-header__logo-image { background: transparent!Important; animation: none!important; }
THIS WORKS IV LOOKED AT TWENTY PLUS THIS IS THE ONLY ONE THAT WORKS