This thread is resolved. Here is a description of the problem and solution.
Problem:
The client reported that WooCommerce product images and some section images were not displaying after translating the site into multiple languages. Additionally, certain sections were not displaying correctly on the homepage in languages other than French.
Solution:
Firstly, we addressed the issue with the WooCommerce product images not displaying. We identified that the custom field for the category image was incorrectly set. We recommended setting 'thumbnail_id' to 'Copy' in WPML -> Settings -> Custom Term Meta Translation. The client needed to edit each product category in French and re-save it to automatically copy the image to the translated categories. It was also important to flush the cache memory after completing these steps.
For the sections not displaying correctly, the issue was with an Elementor element that needed registration for translation. We provided guidance on registering the custom Elementor widgets for translation by following the guide at https://wpml.org/documentation/related-projects/wpml-compatibility-test-tools-plugin/registering-custom-elementor-widgets-for-translation/. Additionally, we provided the necessary XML code to be added in WPML -> Settings -> Custom XML Configuration tab:
<wpml-config><elementor-widgets><widget name="woocommerce-products"><fields><field>query_include</field><field>query_include_term_ids</field><field>query_exclude</field><field>query_exclude_ids</field><field>rows</field><field>products_related_products_title_text</field><field>products_upsells_title_text</field><field>products_cross_sells_title_text</field></fields></widget></elementor-widgets></wpml-config>
The client was advised to update the translated versions of the homepage for the changes to take effect.
If this solution does not resolve your issue, or if it seems outdated or irrelevant 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 further assistance is needed, please open a new support ticket at https://wpml.org/forums/forum/english-support/.
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.
This topic contains 19 replies, has 2 voices.
Last updated by 6 months, 1 week ago.
Assisted by: Carlos Rojas.