Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is using TheGem theme with WPML and is facing an issue where the site logo URL does not change when switching the site language.

Solution:
First, we recommend increasing the PHP memory limit to at least 256M for WPML to function properly. You can do this by adding the following code to your wp-config.php file:

/* Memory Limit */
define( 'WP_MEMORY_LIMIT', '256M' );

Next, ensure that all plugins and themes are up to date to avoid compatibility issues.

We discovered that the logo is inserted via a custom Elementor widget. We registered the URL field as translatable and translated it for the French language.

If the logo URL still does not change, it may be because the French version is using the English header. Follow these steps:
1. Translate your main header and sticky header in all languages by following the instructions provided in TheGem's documentation: Translating Header and Footer Templates.
2. Navigate to "TheGem > Theme options > Menu & Header".
3. Use the language switcher in the top admin bar to switch to the desired language.
4. Change the ID for the header and sticky header to the translated versions.
5. Save the changes by clicking the "floppy disk" icon at the top right corner.

If the solution provided here is not relevant to your case, either because it's outdated or not applicable, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket with us.

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.

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by Nicolas V. 1 year, 3 months ago.

Assisted by: Nicolas V..

Author Posts
January 12, 2024 at 10:06 am #15178171

andrzejL-6

Hello,
we are using TheGem theme for wordpress. Your site telling us that WPML is compability with this theme.
Problem is that our site logo, after changing site language not changing url. It is pernamently set as default hdwrglobal.com. We want do, that if we choose for example French, logo url will change to hdwrglobal.com/fr/
Can You help us?
Thanks.

January 12, 2024 at 3:11 pm #15179809

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

Welcome to the WPML support forum. To help speed up the support process, I've enabled a private message for submitting the debug information for this support ticket. Please follow these initial debugging steps:
https://wpml.org/faq/provide-debug-information-faster-support/
In short:
- Go to "WPML > Support > Debug Information" (link)
- Copy the Debug Information from there.
- Find the private field I activated and paste that information.

---

While waiting for this information you can try a couple of possible solutions:
1. This link could be in the theme options.
- Go to "WPML > String Translation", search for it (use the search bar) and translate it.
- If you can't find it, scroll down to the end of the page and click on "Translate texts in admin screens".
- On the next page, search for it, select it (checkbox at the left) and click on "Add to String Translation".
- Then go back to String Translation to translate it.
Ref: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#translate-admin-and-settings-strings

2. I can see that you're using Elementor, please note that templates from Elementor such as "Header" or "Footer" should be also translated.
- Go to "WPML > Translation Management"
- You can sort by "type of content" to make it easier to find
- Select the correct header and send it to translation
Ref: https://wpml.org/documentation/plugins-compatibility/elementor/#translate-elementor-templates

January 18, 2024 at 1:45 pm #15200128

andrzejL-6

Hi. Thanks You for answer. A checked two steps what You described, but still it not working.
First i translated link in String Translation tab for french and german (image_1 & image_2). Then I checked url hidden link but still site logo is redirect to hidden link

Second step not working too. I translated header template, but wpml is not reading strings "inside".

We can give You access to our wordpress account. The Gem said that their theme is compatibility with WPML.
Thanks

image_2.png
image_1.png
January 18, 2024 at 4:27 pm #15201362

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hi,

Sure, it will be easier if I can see it by myself.

I have activated a private field for your next answer where you can provide that information safely (this field is only visible by you and the support team). Don't share your own admin account, create a new one that you will delete when we finish troubleshooting.

IMPORTANT: Before we proceed, please backup your site and database.

January 26, 2024 at 12:01 pm #15229915

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hi,

Thanks for the access, there are a few things that need to addressed before proper debugging.

1. I've noticed your website has a low PHP memory allocation (40M). The minimum requirement for WPML is 128M but we recommend 256M:
- Access your server via FTP and open wp-config.php (in your WordPress root directory).
- Insert those lines just before /* That's all, stop editing! Happy blogging. */

/* Memory Limit */
define( 'WP_MEMORY_LIMIT', '256M' );

2. Please update all your plugins and themes. We need to make sure we're working on the latest versions of your theme and our plugins.

3. I found that the logo is inserted inside a custom Elementor widget (coming from your theme). I registered the URL field to be translatable and I translated it for French. However, the change is not showing on the frontend. Please make sure that you purge all your caches.

January 30, 2024 at 5:07 pm #15245798

andrzejL-6

Hi. We updated all the plugins and we added code to upgrade memory limit. We are using cloudflare to caching our website but i stopped it and clear a cache. Unfortunately logo is still not working.

January 31, 2024 at 5:16 pm #15250809

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

I noticed the translation of the link from my previous intervention worked but the issue was that the French version was still using the English header.

I found their documentation here: hidden link
I followed the instructions and registered the admin strings for the headers and translated the IDs for French. However it wasn't working still.

- I went to "TheGem > Theme options > Menu & Header"
- I used the language switcher in the top admin bar to switch to French and then changed the ID for header and sticky header

This time it worked so the steps are:
- Translate your main header and sticky header in all languages here: hidden link
- Then go to "TheGem > Theme options > Menu & Header"
- Switch to language by language and select the correct headers and click the "floppy disk" at the top right corner to save