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

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?

2 Likes

Can you give an example of the code for us?

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

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

the solution here is to use a “Custom Liquid” section on the page, then put the customizations in the code. then you can save it.

Thanks!