This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is experiencing an issue where Dynamic Rules for hiding/showing content in Elementor and Anywhere Elementor Templates are not translating correctly after translating a French site into English. Specifically, flags next to product names are not appearing on the English version of the site.
Solution:
We recommend the following steps to resolve the issue:
1. Navigate to the
.../wp-content/plugins/anywhere-elementor-pro/includes/modules/dynamic-rules/module.php
file.
2. Locate line 723.
3. Replace the existing line of code:
$value = $rule['ae_rule_' . $key . '_' . $post_term_types . '_value'];
with the following code:
$value = $rule['ae_rule_' . $key . '_' . $post_term_types . '_value'];<br />foreach ($value as $wpml_tag_id) {<br />$wpml_translated_ids[] = apply_filters('wpml_object_id', $wpml_tag_id, 'product_tag');<br />}<br />$value = $wpml_translated_ids;
After making these changes, please check the templates on the front end to see if the issue is resolved.
If this solution does not seem relevant to your situation, please open a new support ticket with us.
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 21 replies, has 3 voices.
Last updated by 1 year, 3 months ago.
Assisted by: Osama Mersal.