Skip Navigation

[Resolved] Toolset+WPML: Dynamic image not loading in translation

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

Problem:

I have a site built with Divi and Toolset in Spanish, and I am translating it into English using WPML. My custom taxonomies have image fields that display correctly in Spanish but do not load in the translated English version. The image source attribute is empty in the English pages.

Solution:

Ensure that the custom taxonomy fields for images are set to "translatable" in WPML > Settings > Custom Fields Translation. Then, assign the translated images in WPML > Taxonomy Translation. Additionally, check WPML > Settings > Media Translation, enable all options, and run the process to ensure media files are available in all languages.

Relevant Documentation:

https://wpml.org/documentation/getting-started-guide/translating-custom-fields/

https://wpml.org/documentation/getting-started-guide/translating-post-categories-and-custom-taxonomies/

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 1 voice.

Last updated by javierP-9 3 weeks, 1 day ago.

Assisted by: Christopher Amirian.

Author
Posts
#2796253

Hi, I have may site built in spanish with Divi+Toolset. Now I'm traslating it to english using WPML. I have a custom post type, tours, with 3 custom taxonomies. In these taxonomies I added 2 custom fields, an image and a description. For the original lenguage, spanish, i've built a template using Divi Theme Builder for Destinos taxonomy (destinations) and Experiencias taxonomy (experiencies) so I'm showing the image loaded in the custom field for each destino or experiencia in the hero background using a dynamic field from a Divi module. It's working fine, but when I have translated into english these custom taxonomies the image is not loading. You can see this, for example, in Africa, spanish version: hidden link with the image showing, and Africa, english version: hidden link, only with the background color.

Inspecting the code for the english version the src attribute value of the image is blank. Can you help me? Thanks in advance

#2796321

Christopher Amirian
Supporter

Languages: English (English )

Hi,

Welcome to Toolset support. Would you please go to WP dashboard > WPML > Settings > Custom Fields translation and search ot he field there and make sure it is translatbale?

Also as it is a taxonomy field in WPML settings there is a table for items. See if you an find the field there and make sure it is set as translatable

Also do as follows:

- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Go to "WordPress Dashboard > WPML > Settings > Media Translation".
- Make sure that all the enabled checkboxes there are checked.
- Click the "Start" button.
- Wait for the process to finish.

If the issue persists, I'd appreciate it if you could give me the URL/User/Pass of your WordPress dashboard after you make sure that you have a backup of your website.
It is absolutely important that you give us a guarantee that you have a backup so if something happens you will have a point of restore.

Make sure you set the next reply as private.

Also tell me which dashboard link to check to see the template created and the field used.

Thanks.

#2796342

Hi Cristopher, It was hard to find the custom taxonomy field for the images, but I did and they were marked as not translate. I changed that and then, form taxonomy translation I could assign the image for the english translation. It's working now!

Thanks for your help and your time.