Guido
February 16, 2023, 1:54pm
1
Hi,
SVG images are not loading correctly in the editor. So at this point placing an image and choosing an SVG image doesn’t work at all. Unless i grab the URL form the media library and paste it in manually within the image settings.
I created a quick video: https://www.berrycast.com/conversations/1b1586e8-dcd9-583f-beec-4ffb75480b17
Hope this can be fixed soon.
Thanks
Guido
matjaz
February 18, 2023, 9:40am
2
Hi @Guido ,
Which SVG plugin are you using?
What is the broken URL to the SVG image when you insert it in PG?
Thanks, Matjaz
1 Like
Guido
February 18, 2023, 1:37pm
3
Hi @matjaz
I am using HappyFiles that has the option to allow SVG uploads. (https://happyfiles.io/ )
So the url to one of my SVG’s is https://domainname.com/wp-content/uploads/WP-Expert-Logo.svg
But in the editor it doesn’t see SVG’s in the preview window:
The last two are SVG. If i click on one of them to insert then the url that it grabs is:
https://domainname.com/wp-content/uploads/
It seems to ignore the WP-Expert-Logo.svg part of the url.
The url in the settings of the image is then this:
Nothing after uploads/
If i grab the full url https://domainname.com/wp-content/uploads/WP-Expert-Logo.svg and paste it in there then it works.
edit:I just tried to use the upload image within the editor to see if that changes things but the result is the same.
FYI: I just replaced my actual domain name with domainname.
edit: I just tried disabling the plugin and added $mimes[‘svg’] = ‘image/svg+xml’; to enable SVG upload. That didn’t solve the problem.
Guido
(for what it is worth, each situation may differ depending on the hosting and possible restrictions) in local mode, using local.app SVG are fine.
1 Like
Guido
February 18, 2023, 3:51pm
5
Oke some more testing with SVG:
If i copy svg code and paste it in the “Insert Code” area then it works fine:
The Chevron is what i inserted.
If i use Insert > External Content > svg then i get the message “Sorry, your browser does not support inline SVG”
BUT if i refresh the editor then the svg shows up.
So there is definitely something going on with SVG’s.
This doesn’t work for an img svg. Those just don’t work until i manually grab the url from the media folder and paste it in the img settings.
There is no issue using the SVG’s in Gutenberg for example so it seems to be only related to the pinegrow editor. On live hosting.
Guido
Guido
March 21, 2023, 5:52pm
6
Hi @matjaz ,
Following up on this thread to see how we are with these SVG issues? Were you able to replicate the issues i have?
Thanks
Guido