Skip Navigation

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

Problem:
The client was experiencing an issue where the Testimonials element in Elementor displayed both English and Portuguese languages on the front page instead of showing the correct language translations for each site version.
Solution:
We investigated the issue by confirming the WPML settings and testing the site in a minimal environment. We identified that the issue was with the 'Testimonial Card' Elementor element provided by the Grand Tour Theme Elements for Elementor plugin. We resolved the issue by modifying the code in the plugin. Specifically, we added

'suppress_filters' => false

to the query arguments in the file at wp-content/plugins/grandtour-elementor/templates/testimonial-card/index.php. We also recommended that the client contact the theme author to incorporate this modification for future updates and consider joining the WPML Go Global Program (https://wpml.org/documentation/theme-compatibility/go-global-program/).

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 (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.

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

Last updated by Noman 3 weeks, 2 days ago.

Assisted by: Noman.

Author Posts
October 18, 2024 at 7:19 pm #16306177

taniaN-4

Background of the issue:
I am trying to have my website in 2 languages - English and Portuguese. The issue can be seen on this page: hidden link.

Symptoms:
The Testimonials element in Elementor shows both languages on the front page instead of showing English translations on the English site and Portuguese translations on the Portuguese site.

Questions:
Why are both languages appearing in the Testimonials element on the front page?
How can I ensure that the correct language is displayed for each site version?

October 20, 2024 at 5:56 am #16307974

Noman
Supporter

Languages: English (English )

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

Hi,

Thank you for contacting WPML Support. I can see the issue on your site. To take a closer look at this issue, please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and debug the issue.

Your next answer will be private, meaning only you and I can access it.

=== Please backup your database and website ===

✙ I would additionally need your permission to deactivate and reactivate Plugins and the Theme and to change configurations on the site. This is also a reason the backup is essential.

Thank you

October 21, 2024 at 9:30 am #16311249

Noman
Supporter

Languages: English (English )

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

Thanks for providing the login details. I’m debugging this issue on your site and will get back with an update soon.

Thank you for your cooperation

October 21, 2024 at 12:00 pm #16312109

Noman
Supporter

Languages: English (English )

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

I followed the steps below to investigate and resolve the issue:

1. I confirmed that the WPML settings for testimonial categories and post types are correctly configured.

2. I tested the site in a minimal environment by deactivating all plugins except WPML and theme-bundled plugins. However, the issue persisted.

3. I identified that the “Testimonial Card” Elementor element is provided by the Grand Tour Theme Elements for Elementor plugin, which appears to be a bundled plugin from the GrandTour theme.

4. Upon examining the code of the Grand Tour Theme Elements for Elementor plugin, I was able to resolve the issue by making the following change:

- I replaced this code:

//Get testimonial items
	$args = array(
		'order' => 'menu_order',
		'orderby' => 'ASC',
		'post_type' => array('testimonials'),
	);

With:

//Get testimonial items
	$args = array(
		'order' => 'menu_order',
		'orderby' => 'ASC',
		'post_type' => array('testimonials'),
		'suppress_filters' => false,
	);

This change was made on wp-content/plugins/grandtour-elementor/templates/testimonial-card/index.php at line 8.

Here is the updated file link for your reference:
hidden link

Additionally, I noticed that the GrandTour theme is not listed in our verified compatibility themes: https://wpml.org/theme/?wpv_view_count=119967&wpv-theme-category=0&wpv_post_search=GrandTour&wpv-wpcf-recommendation-flag=&wpv_filter_submit=Search

I recommend reaching out to the theme author to request that this code modification be incorporated into the plugin files, ensuring it works after future updates. You might also want to suggest that the theme author join WPML's Go Global Program: https://wpml.org/documentation/theme-compatibility/go-global-program/ This will help ensure full compatibility with WPML.

The issue now seems to be resolved. Could you please check and confirm?

Thank you

Theme custom element.png
default page.png
secondary lang testimonials.png
October 24, 2024 at 1:10 am #16323964

taniaN-4

It’s working! Thank you so much for helping me fix the issue