I run my own wordpress (not on wordpress.com) I'm trying to minimize the number of image files and embed some very small images directly into HTML code using the classic editor. However, when I save the post and load it again - all my embedded SVG images are gone! How do I prevent Wordpress from removing my SVG images?

1 Answer 1


I think you are missing dimension properties (height and width) while adding it in HTML, that's why it is not appearing. For SVG files height and width is compulsory if you align it center or left without giving dimensions property it will break. I faced the same issue when I started my ChartExpo project.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.