Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing an issue where the translated taxonomy terms are not showing on the front end when the Dynamic Visibility feature by Jet Engine is enabled, although they appear correctly when the feature is disabled.

Solution:
We recommend the following steps to ensure that the Dynamic Visibility feature works correctly with translated taxonomy terms in WPML:

1. Navigate to WPML -> Settings -> Custom XML Configuration tab.
2. Add the following code:

<wpml-config>
    <elementor-widgets>
        <widget name="button">
            <fields-in-item items_of="jedv_conditions">
                <field>jedv_value</field>
            </fields-in-item>
        </widget>
    </elementor-widgets>
</wpml-config>

3. Save the changes.
4. Go to the page and edit in the default language, make a minor change (like adding a dot or word), and save.
5. Update the translation.
6. In the translation editor, locate the new fields with the name "jdev_value" and translate these as the names of these taxonomies.
7. Complete the translation to 100% and check the frontend.

For additional help, you can use our Multilingual Tools plugin. More details can be found at Registering Custom Elementor Widgets for Translation.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable 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 the problem persists, please open a new support ticket.

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 9 replies, has 2 voices.

Last updated by estebanP-3 1 year ago.

Assisted by: Waqas Bin Hasan.

Author Posts
June 26, 2024 at 9:32 am

estebanP-3

Background of the issue:
I have a listing grid from Jet Engine that has a few buttons with the Dynamic Visibility feature enabled. These buttons are shown according to the taxonomy selected, which includes experiences divided into ACTIVITY, TOUR, and MEAL. They have different colors and are displayed based on the actual taxonomy for each post. These are shown correctly on the English page (base language) but not in Spanish. The terms are translated. I have translated the terms in the Taxonomy translation within WPML. When I edit the translated post type (experience), it shows the taxonomy correctly marked. The taxonomy hierarchy is already synchronized.

Symptoms:
The translated taxonomy terms are not showing on the front end when the Dynamic Visibility feature by Jet Engine is enabled. They show correctly when the feature is disabled.

Questions:
Why are the translated taxonomy terms not showing on the front end when the Dynamic Visibility feature by Jet Engine is enabled?
How can I ensure that the Dynamic Visibility feature works correctly with translated taxonomy terms in WPML?

June 26, 2024 at 10:32 am
June 26, 2024 at 10:57 am #15832828

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Reference to our recent chat, I've created a fresh sandbox site at hidden link (one-click login).

Here you can find WPML plugins active but remember to configure as needed.

You can use this plugin https://wordpress.org/plugins/download-plugins-dashboard/ to enable downloadable links for plugins and themes in Plugins and Themes pages respectively. Then you can upload in the sandbox via Plugins/Themes -> Add New.

A minimal setup to reproduce the issue is necessary. This way we can see if this only happens on your server or it's a global problem. Then I can also request expert insights from our 2nd tier team, to investigate the issue.

Please DO NOT MIGRATE YOUR SITE HERE, but take your time to create and reproduce the problem and reply when the site is ready. Once you are able to reproduce the issue, please write down detailed steps about how one can reproduce the issue on another fresh installation.

See https://wpml.org/faq/how-to-reproduce-issues-and-share-them-with-wpml-support/ for details.

Regards.

June 26, 2024 at 5:17 pm #15836333

estebanP-3

Thanks. I have installed the main plugins (elementor and crocoblock). You can check this page: hidden link. You can see the buttons displaying correctly in English, and only 1 in Spanish (on my site, none). This is something done within the listing component of jet engine, and it's a conditional configuration. The words MEAL, TOUR and ACTIVITY are included manually within the configuration, and when I review the listing in Spanish, this words remain in English, so probably that's causing the issue (I do have other issues on the website, like this page hidden link where the hotel's listing is not showing the correct layout).

June 26, 2024 at 8:20 pm #15837214

estebanP-3

The layout problem in the Argentine page has been resolved.

June 27, 2024 at 7:26 am #15841313

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates, I am working on it and 'll get back to you accordingly.

For the other question/issue, I recommend opening a separate ticket because as per forum policy we can only handle one issue per ticket. So you can get more to the point help, without mixing up several issues in one long ticket.

June 27, 2024 at 8:33 am #15841832

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

I was able to fix this in the sandbox by registering the conditions applied on these buttons via WPML -> Settings -> Custom XML Configuration (https://wpml.org/documentation/support/language-configuration-files/how-to-register-page-builder-widgets-for-translation/#registering-widgets-with-repeater-fields).

Please use following steps on your site:

- Go to WPML -> Settings -> Custom XML Configuration (tab).
- Add following code:

<wpml-config>
  <elementor-widgets>
    <widget name="button">
      <fields-in-item items_of="jedv_conditions">
        <field>jedv_value</field>
      </fields-in-item>
    </widget>
  </elementor-widgets>
</wpml-config>

- Save.
- Go to the page and edit in default language.
- Make a little change in the content like a dot or word and save.
- Update the translation.
- In the translation editor, find the new fields with name of "jdev_value" (see attached).
- Translate these as the names of these taxonomies, like the same names you did for Spanish in Experiences -> Type of experience.
- Complete the translation to 100%.

And check on the frontend.

You can also use our Multilingual Tools plugin if sometimes you need to find out these configurations, see https://wpml.org/documentation/related-projects/wpml-compatibility-test-tools-plugin/registering-custom-elementor-widgets-for-translation/ for more details.

jdev_value.jpg
June 27, 2024 at 10:00 pm #15846830

estebanP-3

Thanks. I applied your code, and it's showing it on the first 3 elements, but not the rest. I had a previous adjustment from WPML for another issue that was not working properly with the jet popup, so I had another code. Is it ok the way I wrote these 2 together?:

<wpml-config>
<elementor-widgets>
<widget name="button">
<fields>
<field type="Button" editor_type="LINE">text</field>
<field type="Button: Link URL" editor_type="LINK">link>url</field>
<field type="JetPopUp" editor_type="LINE">jet_attached_popup</field>
</fields>
<fields-in-item items_of="jedv_conditions">
<field>jedv_value</field>
</fields-in-item>
</widget>
</elementor-widgets>
</wpml-config>

I edited the listing grid, added a point, saved it, translated it into Spanish, and it's only showing the first three: hidden link

June 28, 2024 at 10:47 am #15851257

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Yes that's the correct way, since it is the same widget.

Can you reproduce this issue in the same sandbox? I mean by adding that additional XML, as well as, the same feature/function/element needed for the existing one too.

June 28, 2024 at 12:41 pm #15851959

estebanP-3

On the sandbox it's working ok: hidden link.

But on the staging site, I added this new XML code and did the same of modifying something, saving, updating the translation, and still only shows 3 (meal). I only have elementor (base and pro), wpml and jet engine (with the dynamic addon) active, and the theme is 2024: hidden link

June 28, 2024 at 12:51 pm #15851994

estebanP-3

Solved. It was written in plural in Spanish in one side and the other singular. Thanks.