Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVGs failing to load with elementor ICON components #665

Open
cgomezhumm opened this issue Feb 28, 2024 · 2 comments
Open

SVGs failing to load with elementor ICON components #665

cgomezhumm opened this issue Feb 28, 2024 · 2 comments

Comments

@cgomezhumm
Copy link

Hi guys elementor which is very well known in the wordpress world released a version 3.19.1 that is now breaking SVG files that are hosted on S3 and retrieved by s3-uploads.

We tested on a normal normal server setup without s3-uploads and SVGs work correctly so elementor support team are pointing to something wrong in this plugin (I doubt it).

Has anyone else have a similar setup and can point us in the right direction? thanks!

  • AWS lightsail (bitnami wordpress single site)
  • S3 bucket public read enabled
  • Only plugins installed are Elementor free and pro + s3-upload
  • Wordpress version 6.4.3
@Gadzhev
Copy link

Gadzhev commented Apr 2, 2024

@cgomezhumm we also experienced this issue and wrote a small plugin that resolves it. The origin of the issue is that:

  • Elementor looks for uploaded SVG icons on the local disk and if they do not exist, the icons are not displayed
  • S3 Uploads plugin changes attachments' path to s3://...

Here's the plugin if you want to give it a try: https://github.com/Web-Grow-Studio/elementor-s3-uploads-support.

You might also update the CORS policy of your S3 Origin to return the Access-Control-Allow-Origin response header if you want the icon to also appear in the Elementor Icon Control itself.

@cgomezhumm
Copy link
Author

Hi @Gadzhev the issue was resolved by elementor in version 3.20 but thanks for the recommendation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants