Germán
Forum Replies Created
-
Hmmm, the first issue just seems like you have a url using http when your local site is using https and I wouldn’t think it’s related to my plugin specifically.
You’re right. I realized that I didn’t set
httpsin Settings > General > WordPress & Site’s URL. It works now on my local site.As for the full size thing, I have never noticed this at all. I’ve never had to set resolution on any of my SVGs before. Will see if I can reproduce these situations and make sure they’re addressed.
Never mind, it now works locally regardless of the size, it was because of the above (not setting https).
I tested the original issue in a WordPress Playground site, but I’ve just now spun up a test site (https://holdscene.s1-tastewp.com/) using TasteWP (as suggested in your plugin description) with “Use Vanilla JS” enabled, and also on a production site, and it works: there’s no issue. I don’t know why the issue occurs when using a Playground site.
So I think I can close this as resolved. What do you think?
@benbodhi Great! I’ll keep an eye out.
And thanks for your work on this plugin, it’s really very useful, and the one I use and want to keep using after having tried others.
By the way, inline SVG doesn’t work on a local site, is that expected? I don’t know if it’s a security measure from WP itself or from your plugin.
Console error:
Mixed Content: The page at 'https://test.local/' was loaded over HTTPS,
but requested an insecure XMLHttpRequest endpoint
'http://test.local/wp-content/uploads/2024/12/arrow-up-right.svg'.
This request has been blocked; the content must be served over HTTPS.File and line:
https://test.local/wp-includes/js/jquery/jquery.js?ver=3.7.1 (line is 9940)Edit about the local site issue:
It doesn’t work unless you set the image resolution to
Full Size(I think I read the same problem here in someone else’s issues, but I can’t find it). It also doesn’t work for inline images inside another block (where it’s not possible to chooseFull Size).