Removing quote from HTML
-
I recently noticed a glitch with my website where some images on the homepage weren’t being loaded correctly.
I noticed that the HTML seems to be missing a single quote, which is causing the html to break and not load
<div class="box-image" style="background-image:url(https://i0.wp.com/www.redroll.com/wp-content/uploads/2019/01/450319678-1.jpeg?resize=700%2C700&ssl=1');""></div>
Heres the source code from my theme file:
<div class="box-image" style="background-image:url('<?php echo $box_image[0] ?>');"></div>
As you can see, there is no opening quote before the link.
So I went into Minify settings and went to the CSS section and tried turning css minification off. It started working again.So i tried to narrow down if its a setting I have within the CSS minification. Tried turning off Preserved comment removal, Line break removal, and tried changing the @import setting. No luck getting it back.
Also went into the general settings and changing the CSS minifier from Minify to CSS tidy, but still no luck
It seems the only way to fix it is to disable CSS minification entirely. What’s the deal? how can i whitelist that one line from not being minified?
- This topic was modified 6 years, 1 month ago by .
- This topic was modified 6 years, 1 month ago by .
- This topic was modified 6 years, 1 month ago by .
The page I need help with: [log in to see the link]
- The topic ‘Removing quote from HTML’ is closed to new replies.