Problem: The client is experiencing an issue where the layout of the product archive displays differently in different languages. In Dutch, only selected products (animal pictures) are displayed, while in English, all products are displayed without an option to select which ones to show. Solution: We recommended editing the product query in both the primary and secondary languages to ensure consistency across different language versions of the site. Additionally, we identified that the English language product was still in draft mode. After publishing the product, the correct items displayed on the site. We suggest checking the frontend to confirm that it displays the correct products.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, please do not hesitate to open a new support ticket. We also 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. For further assistance, you can visit our support forum at WPML Support Forum.
Problem: You are experiencing issues with WPML not activating and triggering a fatal error when using the Enfold child theme. Despite various troubleshooting steps like changing PHP versions, resetting WPML, and adjusting theme settings, the problem persists. Solution: We have identified that your Enfold child theme lacks necessary code and does not include the enqueue scripts in the
functions.php
file. Since the child theme does not contain any critical information, we recommend deleting this child theme and recreating it using a reliable plugin. This approach should resolve the activation issue with WPML.
If this solution does not apply to your case, or if it seems outdated, 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. Should the problem persist, please do not hesitate to open a new support ticket at WPML support forum for further assistance.
Problem: You are trying to translate the currency sign (лв.) to BGN on the English version of your site. Solution: First, ensure you have a backup of your site. Then, insert the following code into your theme's functions.php file:
add_filter("woocommerce_currency_symbol", "change_existing_currency_symbol", 10, 2);
function change_existing_currency_symbol($currency_symbol, $currency) {
switch ($currency) {
case "BGN": // Assuming BGN is the currency code for Bulgarian Lev
if (ICL_LANGUAGE_CODE == "en") {
$currency_symbol = __("лв.", "your-domain-name-here");
} else {
$currency_symbol = __("лв.", "your-domain-name-here"); // You can provide a different symbol for other languages if needed
}
break;
}
return $currency_symbol;
}
Please check if this resolves your issue. If this solution does not work or seems outdated, or if it does not apply to your case, we recommend opening a new support ticket. We also 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. For further assistance, please visit our support forum at https://wpml.org/forums/.
Problem: The client was unable to see the translated string for a custom plugin named 'growytasty' on the frontend, despite having scanned for strings and translated them in WPML. Solution: We discovered that the issue was related to the text domain not being loaded correctly. To resolve this, we added the following code to the 'growytasty.php' file to ensure the text domain is loaded:
After adding this code, the text domain loaded properly, and the translation appeared correctly on the frontend. For more details on configuring and loading translation files, you can visit our documentation: Translating the Theme You Created.
If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. Also, check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum at WPML Support Forum.
Problem: The client is working on a site under development and trying to issue posts in a specific language using WPML. They used custom code to query posts, but it did not work for switching the language. Solution: We recommended using a different approach since we cannot debug custom-coded templates. Here is a working example that the client can adapt:
<?php
// Get the current frontend language
$current_lang = apply_filters( 'wpml_current_language', NULL );
$args = array(
'post_type' => 'post',
'posts_per_page' => -1,
'suppress_filters' => false,
'lang' => $current_lang, // Filter posts by the current language
);
$posts = get_posts($args);
if ($posts) {
foreach ($posts as $post) {
setup_postdata($post);
// Display the post data
echo '<h2>' . get_the_title() . '</h2>';
echo '<div>' . get_the_excerpt() . '</div>';
}
wp_reset_postdata();
}
?>
If this solution does not apply because it is outdated or not suitable for 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 WPML support forum.
Problem: The client is experiencing an issue where the preview image for an article does not automatically update when translating articles using WPML. Despite disabling image-related plugins and adding specific filters, the issue persists.
Solution: 1. Temporarily disable any image optimization features, such as Lazyloading. 2. Navigate to "WPML > Settings" and access the Media Translation section. Select the options shown in this screenshot (https://prnt.sc/Qfy7oxq7qrvZ) and initiate the process by clicking on the "Start" button. 3. After completion, clear the caches from the site and browser. 4. Check if the image preview displays correctly on the translated page or post. 5. If the issue continues, proceed with Media Synchronization in WPML > Settings. 6. Go to "WPML > Support > Troubleshooting" and perform the following actions: - Synchronize posts taxonomies (select "Media" from the dropdown before clicking) - Clear the cache in WPML - Assign translation status to duplicated content - Set language information - Fix post-type assignment for translations 7. Clear the caches again and verify the issue.
If these steps do not resolve the problem, a more detailed investigation might be necessary. We recommend checking related known issues (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 the issue persists, please open a new support ticket for further assistance. You can do so here: WPML Support Forum.