content:url() not allowed in the "CUSTOM CSS" within the themes

content:url() not allowed in the "CUSTOM CSS" within the themes

50percent
Shopify Partner
12 0 26

Trying to make all of my CSS changes within the "CUSTOM CSS" section within my theme. however, so one page i need to do an image hover and the theme will not let me save if the css code includes content:url()

 

anyone have any insight here?

Replies 5 (5)

threed
Shopify Partner
129 17 50

Can you give an example of the code for us?

If I helped you, please help me by marking my comment as an accepted solution.
I am open to work and have been working with the Shopify system for several years.
50percent
Shopify Partner
12 0 26

actually, on closer inspection, it is actually this bit that won't let me save

 

.class img:hover

{content:url(exampleURL);}

 

i guess it doesn't want me to swap the content...it rejects the URL

saschabb
Tourist
3 0 0

content is also not allowed for text only, like so much more css code. it really sucks.

50percent
Shopify Partner
12 0 26

the solution here is to use a "Custom Liquid" section on the page, then put the customizations in the <style></style> code. then you can save it.

saschabb
Tourist
3 0 0
Thanks!