Why can't I add background images via CSS anymore?

Why can't I add background images via CSS anymore?

Ruben__Nunez
Shopify Partner
4 0 0

I'm not able to add background images via css to shopify anymore. I use to do it like this, but its no longer working:

 

.use-alt-bg {
background-image: url("https://cdn.shopify.com/s/files/1/0373/5420/9339/files/thin-banner.jpg");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}

 

In the inspector, I see the following attached. 

issue.jpg

 

When I add that, 

Replies 2 (2)

oscprofessional
Shopify Partner
16366 2440 3188

@Ruben__Nunez ,

Please share the store URL...

Hire us | Pass Core Web Vital | B2B Wholesale Experts | Claim Your Free Website Review |
Connect with Us: WhatsApp | Skype: oscprofessionals-87 | Email: pallavi@oscprofessionals.com |
Custom Shopify SolutionsPrivate Apps, Theme Customization & SEO | Digital Marketing |
OSCP Apps: Discount Suite | Wholesale App | Bundle & Upsell | Shipping Discount | and more...

GemPages
Shopify Partner
5625 1262 1282

Hi @Ruben__Nunez,

 

It's the GemPages Support Team and we are glad to assist you today!

 

Could you please share your store URL ( with the password if your store password is enabled ) then I can see and suggest something for you?

 

Best regards,
GemPages Support Team

 

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center