I am adding SVG tag to my custom theme, so it is pure hardcoded svg code (not a media upload).
My code looks like this at this point (there are also css styles attached)
Nothing shows up and I am not even sure where to look for this. I have a feeling that something in Local strips svg tag out. It’s not like the code is there but nothing shows up. The tag is not there at all.
System Details
Local Version: 7.1.2+6410
Operating System (OS) and OS version: Windows 10 Pro
CSS files are regenerated and the styles applied are there. At least I see the block with class seven and assigned styles. No other caching happens, I moved the block .seven to a different location on the page and it was moved but it’s still empty like so:
<div class="seven">
" "
</div>
No errors in the console, no issues (related to it) seen in debug.log
I can not test with a different theme because the page is custom post type.
I tried switching to 2020 and inserting it right after the <header> tag, test svgs showed up. I’ll keep looking what’s different in out theme then.
Sorry for bothering!
Not a bother at @rilel! I was just hoping to help get you pointed in a direction. If you have any other questions or concerns don’t hesitate to reach back out. We are always happy to help!
I found the issue. Maybe it will help someone else at some point. We have wp_kses stripping the content. That’s why svg show up in the header but not the content. Adding svg to wp_kses_allowed_html helped, since it is custom theme and I’m not too worried about SVGs