Home›Support›English Support›[Resolved] the translated caption in the images slider is not displayed in translated page
[Resolved] the translated caption in the images slider is not displayed in translated page
This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing issues where the translated captions in an image slider are not displayed and instead show the default language captions, even though they are translated in the translation editor. Solution: First, ensure that you have the latest versions of Elementor and JetElements plugins installed. Next, you need to add custom PHP code to your theme's functions.php file to handle the translation of image captions in sliders. Here is the code you should insert:
Additionally, modify the Jet Engine plugin's code to ensure compatibility with WPML. In the file \wp-content\plugins\jet-engine\includes\classes\tools.php, after line 792, add the following code:
If this solution does not resolve your issue or becomes irrelevant due to updates, we 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 at WPML support forum for further assistance.
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.
Thanks for your reply. I'm on this page hidden link and I'm still not so clear which slider you are referring to. Could you please highlight is using a screenshot?
Thanks for your patience. We have a workaround for this and could you please backup and insert the custom PHP code below into your theme's functions.php file?
Then, recheck to see if the translated page is showing the correct translated image titles and captions.
Thanks for your reply. I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.
Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.
Your upcoming reply will be treated with confidentiality and will only be visible to you and me.
✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.
Okay... How do I implement the fix in a durable way then? I don't want to add the code each time I update Jet Engine. According to this page it's 100% compatible: https://wpml.org/plugin/jetengine/
Thank you for your reply. The plugin was last tested on June 20, 2024. We’ve already shared the solution with the plugin developers, and while we expect them to implement it, we cannot guarantee it as the plugin is maintained by a third party.