This thread is resolved. Here is a description of the problem and solution.
Problem:
The client reported that certain hardcoded strings on their product page were not translating, despite having translations available. Additionally, content in the Information tab was not displaying correctly.
Solution:
1. To address the display issue in the Information tab, we added the following CSS to the custom CSS section of the theme:
.woocommerce-Tabs-panel .woocommerce-Tabs-panel { display: block !important; }
This change ensured that the tab content is now visible in all languages.
2. For the hardcoded strings on the product page, such as 'Code du produit', we took the following steps:
- Enclosed the strings within the gettext __() function in the functions.php file of the child theme, changing 'Code du produit' to:
__('Code du produit', 'savoy-child')
- Scanned the child theme using WPML's Theme and plugins localization feature.
- Located the string on the WPML String Translation page and added its translation.
For more details on translating themes, you can refer to this documentation: Translating the Theme You Created
3. A separate issue related to manually translating product details has been addressed in a new support ticket.
If this solution does not resolve your issue or seems outdated, we recommend opening a new support ticket. We also advise 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. For further assistance, please visit our support forum at WPML Support Forum.
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 is split from https://wpml.org/forums/topic/woocommerce-product-tabs-compatibility-issue/
This topic contains 4 replies, has 2 voices.
Last updated by 5 months, 3 weeks ago.
Assisted by: Noman.