Since I updated to X version 7 (7.0.4), I can not select an existing svg file from the Media library, to be used as logo in X > Theme Options > Header > Logo image.
It just doesn’t register the selected file if it is a svg. I have tested this on several sites, and it’s the same everywhere.
Hello Thomas,
Thanks for writing in!
Please take a look at solution shared in following thread:
Thanks.
Hello!
Thanks.
I know about the limitation regarding svg in WordPress core, but I have a function that enables svg upload in my functions.php in the child theme (that I always use). And all svg files have the “<?xml version="1.0" encoding="utf-8"?>” in the beginning of the content. WordPress doesn’t allow uploading svg files without that.
I have been able to select a svg file in X > Theme Options > Header > Logo image before X version 7. The solution with inserting the svg in the _brand.php-file in the child theme is possible, but I prefer to be able to select it from the interface, because when I’m done with the site, the customer should be able to edit everything from the backend. So, if this is a bug, please fix it. If it is a feature in X >= v7, I just don’t understand the reason…
Hi Thomas,
Since SVG is not an actual image (rather vectors) then it doesn’t have defined dimension which causes the render sizing issue within the builder. And have some effect on other browsers rendering too. For that, such sizes of full, medium, thumbnail doesn’t apply for SVG images. For that, I recommend using PNG image instead of SVG.
But, I’m not saying the SVG upload is disabled by our theme or builder, I tried it on my installation and I can still upload and select SVG files with the latest theme version. I’ll continue checking as I can’t guarantee it’s all the same on all sites/install.
Thanks!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.