Skip to content Skip to sidebar

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 1 reply, has 0 voices.

Last updated by Otto 10 months, 2 weeks ago.

Assisted by: Otto.

Author Posts
March 25, 2025 at 2:50 pm #16858500

moustafaK

Background of the issue:
I am trying to display image thumbnails in the translated version of my website. However, the thumbnails do not appear in several areas, such as recently viewed products and search products. Please check the screenshot: hidden link. The issue can be seen on this page: hidden link.

Symptoms:
In the translated version of the website, the image thumbnails do not show in many places.

Questions:
Why are the image thumbnails not showing in the translated version of the website?
How can I fix the issue with thumbnails not appearing in recently viewed and search products?

March 27, 2025 at 11:49 am #16868229

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Could you please increase your WP Memory limit?
Add this code to your wp-config.php to increase WP memory:

  
<em>Memory Limit</em>  
define('WP_MEMORY_LIMIT', '256M');  

Paste it just before:

  
<em>That's all, stop editing! Happy blogging.</em>  

See here for more information https://wpml.org/home/minimum-requirements/
Note: WPML needs a minimum WP Memory limit of 128M to work only under a minimal environment, with a default theme and no other plugins installed.

Then, I suggest trying these:
❌ Please make a full website backup before proceeding ❌

1. Enable Media Duplication for Translations:

WPML allows you to duplicate media (images) from the original content to its translations. To ensure images appear correctly across all languages: 
• Navigate to WPML > Settings > Media Translation. 
• Select the following options:
- Translate existing media in all languages 
- Duplicate existing media for translated content 
- Duplicate the featured images for translated content 
- Click on the Start button to apply these settings. 

This process will duplicate your existing media files for translated content, ensuring that images are available in all languages. 

2. Verify Custom Field Translation Settings:

Some themes and plugins store image information in custom fields. If these fields aren’t set to copy their values to translations, images might not display correctly. To check and adjust these settings: 
• Go to WPML > Settings > Custom Field Translation. 
• Search for fields related to product images or galleries, such as _product_image_gallery. 
• Set these fields to Copy to ensure their values are duplicated in translations.

Adjusting these settings ensures that image-related custom fields are copied to translated content.

3. Update Translations:

After adjusting the above settings, it’s essential to update your translated content to apply the changes:
• Edit the original 
• Make a minor change, such as adding a space or punctuation.
• Save the changes. 
• Update the translation to reflect these changes. 

This process ensures that the new settings are applied to existing translations.

4. Clear Cache:

Caching plugins or server-side caching can sometimes cause display issues:
• Clear your site’s cache using your caching plugin.
• If you have server-side caching, clear it as well.
• Refresh your website to see if the images appear correctly.

Best Regards,
Otto