Skip to content Skip to sidebar

Open

Reported for: WPML Multilingual CMS 4.8.4

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.

6 Responses to “Elementor Pro – Site Logo Replaced by Placeholder on Translated Pages”

    • Hi John,

      Did you translate the media under WPML > Media Translation?
      If you’d prefer to keep the same logo (without translating it), you might want to try Option 2 or follow the solution outlined in the summary at the top of this ticket.
      If the issue persists, please open a ticket on our support forum so we can assist you further.

  1. Hello there, I am running into the same issue. Problem is: I can’t find the logo file within the Media. Why is that? How to solve it?

    • Hi Samuele,

      If you don’t need to translate the logo (same image in all languages), you may want to follow Option 2 or follow the solution outlined in the summary at the top of this ticket.
      – Go to “WPML > Settings > Media Translation”
      – Deactivate the ‘Automatically detect best options for translating image texts’ option
      – Run the duplication of existing images across languages
      – Reactivate the automatic option.

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>