Comments Shane started the conversationApril 25, 2020 at 12:51pmHi,I am getting errors because there are no spaces in the generated CSS and HTML when using variables.For example, I have this CSS: box-shadow:{{ribbon_shadow_vertical}} {{ribbon_shadow_horizontal}} {{ribbon_shadow_blur}} {{ribbon_shadow_spread}} {{ribbon_shadow_color}};But there is no shadow on the element and when I check the inspector in Chrome I see this:.corner-ribbon.shadow { box-shadow: 7px6px8px0px#2E317E; }So there are no spaces being created between the variable outputs causing the browser not to recognise the CSS as valid.I'd love to know what I am doing wrong! :) Thanks so much for your time!Shane Max replied privately Shane replied privatelyShane repliedApril 27, 2020 at 3:23pmIt also seems like all the CSS is being created inline.Shane repliedApril 28, 2020 at 8:40amI was just trying to think what changed on my site to break this and the only thing I can think of that I have done is to update PHP to 7.4. do you think that could be causing a problem? 948Max repliedApril 29, 2020 at 1:51pmyes, sure, but I need to test it. Max replied privately Shane replied privately Shane replied privately Shane replied privately Max replied privately Shane replied privately Sign in to reply ...
Hi,
I am getting errors because there are no spaces in the generated CSS and HTML when using variables.
For example, I have this CSS:
box-shadow:{{ribbon_shadow_vertical}} {{ribbon_shadow_horizontal}} {{ribbon_shadow_blur}} {{ribbon_shadow_spread}} {{ribbon_shadow_color}};
But there is no shadow on the element and when I check the inspector in Chrome I see this:
.corner-ribbon.shadow { box-shadow: 7px6px8px0px#2E317E; }
So there are no spaces being created between the variable outputs causing the browser not to recognise the CSS as valid.
I'd love to know what I am doing wrong! :)
Thanks so much for your time!
Shane
It also seems like all the CSS is being created inline.
I was just trying to think what changed on my site to break this and the only thing I can think of that I have done is to update PHP to 7.4. do you think that could be causing a problem?
yes, sure, but I need to test it.