Resolved
Reported for: WooCommerce Multilingual & Multicurrency 3.6.3
Overview of the issue
Translated image title and ALT are not shown on the front-end of the translated Enfold page. You might encounter this issue in the following scenario:
- Add an image to your media library and translate the title and ALT text.
- Create a page using the Avia Builder.
- Add an image element.
- Choose the image you uploaded and translated in step 1.
- Translate the page.
On the front-end, you will see that the original image title and ALT texts are being displayed in the secondary language.
Workaround
To overcome this issue, open the image.php file found in the ../enfold/config-templatebuilder/avia-shortcodes/ folder of your WordPress installation and add the following code:
$attachment = apply_filters('wpml_object_id', $attachment, 'attachment', true);
Add it just before the following line:
$attachment_entry = get_post( $attachment );
Hey there. Having the same problem on a number of pages. Not using WooCommerce though. Seems to be a more general problem. I’d be greatful for a fix in one of the coming versions. Thanks!
Hi,
Please visit our support forum and open a ticket describing your issue. Our support team will be more than happy to investigate the issue further:
https://wpml.org/forums/forum/english-support/
The workaround works fine. Thanks a lot. If I choose a page in Translation Dashboard, the dialogue “Choose which media to translate with this page” does not show up, if the media is used in an enfold image. Is there also a workaround that helps recognizing media in enfold images?
Thanks!
Hi Stefanie,
Please visit our support forum and open a ticket describing your issue. Our support team will be more than happy to investigate the issue:
https://wpml.org/forums/forum/english-support/
Pretty! This was an extremely wonderful post. Many thanks for providing this information.
Hi Kristina,
I am glad it works for you!