[Resolved] what is the status of my support request? I dont see anything?
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was experiencing issues with various widgets of Unlimited Elements for Elementor, where the Media Translation did not replace the images in a second language. This was particularly problematic with the 'Coverflow Carousel' and 'Dual Color Heading' widgets from Unlimited Elements for Elementor, which were not filtering images correctly by language.
Solution: We first recommended ensuring all plugins were updated and then re-saving the original page in Elementor. When this did not resolve the issue, we identified that the function
getUrlAttachmentImage
in the plugin was not checking for the current language. We provided a code snippet to modify this function to integrate WPML's language settings:
For the Image Carousel, revise this comment. Another fix can be found here.
We advised the client to report these details to the plugin authors and informed them that our compatibility team would also reach out to the plugin authors.
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. 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.
Note that such custom code requests are usually developer work or a question for the theme support, and individual custom code adjustments are not covered by our support policy. We are happy to offer guidance in such cases, but we can not provide code solutions, especially not for complex issues.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
I sadly cannot access the site, as there is an additional server protection that requires a username and password. The private reply form is now enabled, allowing you to provide me with this information.
If you want to display different images in different languages with WPML, you will need to use WPML Media Translation.
The WPML plug-in is not showing the correct language in some widgets
1. The CoverFlow
2. The Dual Heading (which keeps the EN version within the brackets).
See same images attached.
How can you adjust the WPML settings so it recognizes the languages settings of the imagery (like it is sold to us)?
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
On my test site, I can confirm the issue with the images inside the "CoverFlow Carousel".
The plugin is trying to fetch the correct image inside the file \unlimited-elements-for-elementor\provider\functions_wordpress.class.php with this function:
public static function getUrlAttachmentImage($thumbID, $size = self::THUMB_FULL){
$handle = "thumb_{$thumbID}_{$size}";
if(isset(self::$arrUrlThumbCache[$handle]))
return (self::$arrUrlThumbCache[$handle]);
//wpml integration - get translated media id for current language
$isWPML = UniteCreatorWpmlIntegrate::isWpmlExists();
if($isWPML)
$thumbID = UniteCreatorWpmlIntegrate::getTranslatedAttachmentID($thumbID);
$arrImage = wp_get_attachment_image_src($thumbID, $size);
if(empty($arrImage))
return (false);
$url = UniteFunctionsUC::getVal($arrImage, 0);
self::$arrUrlThumbCache[$handle] = $url;
return ($url);
}
The plugin is not checking for the current language. The function needs to be adapted to:
public static function getUrlAttachmentImage($thumbID, $size = self::THUMB_FULL){
$handle = "thumb_{$thumbID}_{$size}";
if(isset(self::$arrUrlThumbCache[$handle]))
return (self::$arrUrlThumbCache[$handle]);
//wpml integration - get translated media id for current language
$isWPML = UniteCreatorWpmlIntegrate::isWpmlExists();
if ( $isWPML ) {
$current_lang = apply_filters( 'wpml_current_language', null );
$default_lang = apply_filters( 'wpml_default_language', null );
if ( $current_lang !== $default_lang ) {
$thumbID = UniteCreatorWpmlIntegrate::getTranslatedAttachmentID( $thumbID );
}
}
$arrImage = wp_get_attachment_image_src($thumbID, $size);
if(empty($arrImage))
return (false);
$url = UniteFunctionsUC::getVal($arrImage, 0);
self::$arrUrlThumbCache[$handle] = $url;
return ($url);
}
Please report these details to Unlimited Elementor for Elementor and let us know if further assistance from our end is necessary. I am further escalating to our compatilbity team, which might try to reach the author of the plugin on this matter.
---
Could you please try to replicate the issue with the "Dual Color Heading" as I can not confirm this so far:
POINT 1:
Ok, I will forward the above plug-in info for the Unlimited Elements for Elementor.
POINT 2:
I don't know what you are asking me as the link doesn't explain anything to me.
Can you please explain your below note and what the link is supposed to mean for me?
"Could you please try to replicate the issue with the "Dual Color Heading" as I can not confirm this so far:
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
If you click on the link, you will be logged into a test site.
Please try to recreate the issue with the "Dual Color Heading" and let me know if you can confirm the same issue there. Make sure to use the same field values and settings, as for now, I could not confirm any issue regarding this widget.
Note, I already escalated the image issue to our compatilbity team, too. They will try to reach the author about it.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
After clicking on the link, you can go to hidden link to access the backend.
You said that the "Dual Heading" widget is also causing issues.
Please create a new page with the widget or widgets that are currently causing issues on the site. Try using the same settings and confirm if the issue will also exist on this test site.
Or provide more details, or screenshots, and I can assist you in trying to recreate the issue.