- Status
- Resolved
- Reported for
- WPML Multilingual CMS 4.8.4
- Resolved in
- WPML Multilingual CMS 4.8.6
- Topic tags
- Bug, Compatibility
Overview of the issue
When using Elementor Pro with WPML, if Media Translation is not installed, the site logo defined in the default language does not appear on translated pages. Instead, Elementor displays a default placeholder image in place of the logo. This behavior occurs when using the Elementor “Site Logo” widget in templates built with Theme Builder.
Workaround
There are two temporary solutions available:
Option 1: Install WPML Media Translation
Installing the WPML Media Translation add-on resolves the issue by ensuring translated media attachments are correctly handled.
Option 2: Apply Custom Filter to Bypass Translation of Logo Option
Please make sure you have a full backup of your site before proceeding.
Open: Your theme’s functions.php file or a custom functionality plugin.
Add: The following code snippet at the end of the file:
add_filter('option_site_logo', function ($value) {
global $wp_filter;
$tag = 'option_site_logo';
$prio = 11;
if (isset($wp_filter[$tag])) {
$hook = $wp_filter[$tag];
if ($hook instanceof WP_Hook) {
if (isset($hook->callbacks[$prio]) && is_array($hook->callbacks[$prio])) {
$hook->callbacks[$prio] = [];
}
}
elseif (is_array($hook) && isset($hook[$prio]) && is_array($hook[$prio])) {
$wp_filter[$tag][$prio] = [];
}
}
return $value;
}, 10, 1);
Optional: Clear your site’s cache and regenerate Elementor CSS files.
We are aware of this issue and our developers are working on a permanent fix.