SethN1
August 8, 2021, 6:50pm
1
Hi, for some reason, I have a gray background behind my logo, which does not seem to happen on the checkout page. I have the following code in theme.css, however, it does not seem to work. At first, it worked only on mobile, however, for some reason it no longer works.
.site-header__logo-image {
display: initial !important;
The background looks different on mobile and desktop:
Desktop:
Mobile:
How could I fix this? Thank you in advance.
Try adding this rule to the bottom of the theme.css file
.site-header__logo-image {
background: #fff !important;
}
@SethN1 , do this to fix it in 20 seconds :
In your Shopify Admin go to: online store > themes > actions > edit code
Find Asset > theme.scss.liquid or theme.css and paste this at the bottom of the file:
.site-header__logo-image,
.site-header__logo-image *{
background: white !important;
}
Kind regards,
Diego
1 Like
Hii, @SethN1
Can you provide me your store URL ,
i can see your problem and give you a proper solution.
Thank You.
@SethN1
Remove background of your logo.
SethN1
August 9, 2021, 12:36pm
9
It shows that it has a transparent background:
SethN1
August 9, 2021, 12:38pm
10
Hi,
@diego_ezfy
@LitExtension
For some reason, both of your solutions, only on mobile, moved the gray bar downwards, however, did not remove it:
For desktop, it seems to have stayed the same:
I appreciate the help though, thank you.
Please change code:
.site-header__logo-image,
.site-header__logo-image img{
background: #fff !important;
}
it will work fine.