Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is unable to display SVG images on the translated pages of their website using WPML. Despite applying a known workaround, the SVG images still do not appear on the translated version of the page.
Solution:
We recommend the following steps to resolve the issue:
1. Add the workaround from the errata to your theme's

functions.php

file. You can find the workaround here: WPML Errata on SVG Support.
2. Update the homepage in the original language by making a minor edit (e.g., adding a space at the end of a paragraph).
3. Update the translation of the homepage by opening it in the Advanced Translation Editor (ATE) and clicking 'Completed', even if no changes are made.
If the SVG images display correctly after these steps, begin reactivating other plugins one at a time or in small groups on your development site to identify any conflicts. Once the issue reappears, note which plugin was last activated as it may be causing the conflict.

If this solution does not resolve your issue or seems outdated, or if it does not apply to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 0 replies, has 2 voices.

Last updated by Lauren 3 weeks, 2 days ago.

Assisted by: Lauren.

Author Posts
November 15, 2024 at 8:54 pm #16409805

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

It should be in your theme functions.php, not entered via a plugin. Please it there. I am still not able to reproduce the issue on the sandbox site after adding the code for the workaround.

If it is still happening on your site after adding the workaround code in the correct spot, then we will need to test minimal settings, meaning only Divi theme with WPML plugins and SVG Support. Do you have a staging site where we can test that? If not, I suggest using something like WPStaging and setting one up. If you are uanble to do that, let me know and I can set up a cloudways site and send instructions for migrating your site there.

November 16, 2024 at 7:27 am #16410246

bergesY

i create a copy
move code in function.php of my theme
your access is ok
site is hidden link
you can test anything
thanks

November 19, 2024 at 8:16 am #16417965

bergesY

sorry but do you have some news ?
regards

November 19, 2024 at 1:41 pm #16419993

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Thanks for sending access to a dev site so I could test minimal settings. With only WPML plugins active (with SVG Support of course) and the Divi theme, I followed these steps on your dev site and you can now see it working:
1. Add the workaround from the errata to your theme functions.php file
2. Update the homepage in French (I added a space to the end of a paragraph).
3. Update the English translation of the homepage (no changes made, just opened it in the ATE and clicked Completed).

After these steps,I can now see the SVG on the homepage translation: hidden link

It appears there must be some other plugin conflicting. I suggest in your dev site, begin activating other plugins one or a few at a time and let me know when the issue returns which plugin was last activated. Then we can look further into the conflict.

November 19, 2024 at 3:03 pm #16420329

bergesY

i think i found ewww support seems the problem when its actived this process doesn't works

November 27, 2024 at 5:06 pm #16451245

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

My name is Lucas, and I'll take over this ticket while Lauren is away. I've read through the ticket, so I know all the details 🙂

I double-checked internally, and unfortunately we cannot resolve this issue, due to the lack of cooperation from the SVG Support team. Here's what our devs posted regarding that:

"I'm unfortunately unable to get cooperation from the author despite our best efforts. I've published a 'not compatible' listing with note: https://wpml.org/plugin/svg-support/"

As a workaround, since your issue happens specifically when EWWW is active, I recommend you to perhaps look for a WPML-compatible plugin that can replace it. You can check our list of WPML compatible plugins here:
https://wpml.org/plugin/

Regards,

December 3, 2024 at 6:39 pm #16473413

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Please review Lucas' previous response, and since we do not have an alternate solution you may close this ticket. Please don't hesitate to open up a new ticket if there is something else we can help you with in the future.