Skip to content Skip to sidebar

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 0 voices.

Last updated by homeP 6 days, 3 hours ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
March 25, 2026 at 2:36 pm #17926684

homeP

Clicking on the logo always redirects the user to the default language, Home. The user does not remain on the same language.

March 26, 2026 at 8:12 am #17928012

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: Europe/Vienna (GMT+02:00)

Hello there,

I saw that your website was built with Elementor. If your header was also built with Elementor, you can simply translate it.

Go to WPML > Translation Dashboard, search for the header element and send it to translation. Finish the translation.

If the logo link is still untranslated, once inside the translation editor for the header, search for the logo link using the search field and add a translation.

https://wpml.org/documentation/plugins-compatibility/elementor/

Let me know how it goes.

March 26, 2026 at 9:43 am #17928374

homeP

Tanke, but the header is already translated compactly.

March 26, 2026 at 12:35 pm #17928963

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: Europe/Vienna (GMT+02:00)

I would like to look at this directly on your site. For this I would need temporary access (WP-Admin and FTP) to your site, preferably to a test/staging site where the problem has been replicated if possible.

The required fields can be found below the comments section. The information you enter is private, i.e. only you and I can see it and have access to it.

I may need to replicate your website locally. To do this, I need to temporarily install a plugin called "Duplicator" or "All in One WP Migration" on your website. This will allow me to create a copy of your website and content. Once the issue is resolved, I will delete the local website. Let me know if this works for you.

IMPORTANT

Please make a backup copy of the site files and database before giving us access.

- If you do not see the wp-admin/FTP fields, this means your post and site login details are being made PUBLIC. DO NOT post your website details if you do not see the required wp-admin/FTP fields. If you do not, ask me to enable the private box. The private box looks like this:

hidden link

March 26, 2026 at 1:07 pm #17929156

homeP

add_filter('elementor/widget/render_content', function( $content, $widget ) {
if ( 'site-logo' === $widget->get_name() ) {
$settings = $widget->get_settings();
if ( 'default' === $settings['link_to'] ) {
$content = preg_replace('/href=".*?"/i', 'href="' . get_home_url() . '"', $content, 1);
}
}

return $content;
}, 1, 2);