Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wordpress some img src are replaced with `data:image/svg+xml...`

I created a custom page template in one of my site's theme.

Some img src were rendered correctly, but some were replaced with something like data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E

to be exact, it looked like this in live site:

<img src="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E" alt="" data-lazy-src="https://example.com/wp-content/themes/MyTheme/img/icons/Info.png" class="cursor-pointer">

And its not rendering anything on live site.

What causes this? and what should I do to avoid this issue?

like image 786
devme deveper Avatar asked Oct 17 '25 17:10

devme deveper


1 Answers

I have disabled W3 Total Cache plugin.

like image 127
Meggis Avatar answered Oct 20 '25 15:10

Meggis