Reported for: WooCommerce Multilingual 3.6.3
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.
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 );