Skip to content Skip to sidebar

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

Problem:
The client was experiencing layout issues when switching languages on their website, which could be due to theme compatibility or incorrect language settings.
Solution:
1. Verify the correct language assignment for affected pages in the WordPress admin.
2. Temporarily switch to a default WordPress theme like Twenty Twenty-Three to check if the issue persists, indicating a theme-related problem.
3. Clear all caches to ensure changes take effect.
4. Update all WPML plugins, the site theme, and other plugins to their latest versions.
5. If the issue persists, consider advanced troubleshooting such as custom CSS or page builder configurations.

If this solution does not resolve your issue or seems outdated, we recommend opening a new support ticket. Also, check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum at http://wpml.org/forums/topic/split-when-we-change-language-on-page-then-page-layout-will-be-me-sup/.

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 11 replies, has 0 voices.

Last updated by frederikc-7 4 months, 2 weeks ago.

Assisted by: Carlos Rojas.

Author Posts
December 4, 2025 at 12:36 pm

frederikc-7

when we change language on page then page layout will be me-sup

December 4, 2025 at 1:28 pm #17634497

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

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

Hi there,
I converted the chat into this forum ticket so we can continue working together on solving these issues.

The menu and the HTML issues are already solved. The only remaining problem is with the text at the top bar. Could you share the URL where this text can be edited?

December 5, 2025 at 6:46 am #17636823

frederikc-7

hidden link

here you can edit menu and see the code

December 5, 2025 at 10:24 am #17637602

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

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

Hi,
Thank you for sharing the URL

However, I can't access the site with the credentials you shared; it seems the password was modified. Please share the updated credentials in your next message, which I have set private.

December 5, 2025 at 11:58 am #17638158

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

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

Hi,
Thank you for sharing the new credentials.

The first step you must do is to translate this content to all languages: hidden link

Then I need you to tell me where the information from the [free_shipping_rotating] shortcode can be edited. This is where we will be able to translate the content.

So, here are the steps to follow:
- Translate the post hidden link to all languages
- Get the URL to edit the content in the [free_shipping_rotating] shortcode to decide how to translate it
- Probably edit the translated posts (from the first step) to update the translation

December 5, 2025 at 12:04 pm #17638306

frederikc-7

[free_shipping_rotating] this shortcode is added on function.php on child theme.

The purpose this dynamic currency converting static to dynamic.

Please go ahead and use any method to implement this step so user will show this translated.

December 5, 2025 at 12:33 pm #17638465

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

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

Thank you for your message.

In this case, you need to change the code in the functions.php file from:

<span class="message active">Free Shipping over&nbsp; <?php echo do_shortcode('[earmuffz_shipping]'); ?></span>
      <span class="message">Buy 2, Get 15% Off</span>

to:

<span class="message active"><?php esc_html_e("Free Shipping over", "earmuffz"); ?>&nbsp; <?php echo do_shortcode('[earmuffz_shipping]'); ?></span>
<span class="message"><?php esc_html_e("Buy 2, Get 15% Off", "earmuffz");?></span>

So, you must use the gettext functions to print the text and save the changes. Then you need to translate hidden link and translate the strings from the code in WPML -> String Translation.

Here are the steps organized:
- Change the code in the functions.php to use the gettext
- Go to WPML -> Theme and plugins localization -> Scan the theme
- Go to WPML -> String Translation -> Search the strings and translate them (I used the earmuffz domain, but you can use any)
- Translate the content hidden link to all languages

Can you confirm that the issue is solved?

December 5, 2025 at 1:00 pm #17638564

frederikc-7

yes code updated and content also translated but still top header messagte not translated.
could youplease take a look and fix this pkease

December 5, 2025 at 1:10 pm #17638629

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

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

Hi there,

Everything is working correctly now. The only step missing is to translate this string hidden link (I added the language code as a prefix to the translation as a test so you can see it is working)

December 5, 2025 at 1:39 pm #17638770
frederikc-7

Yes, perfect, now working fine.

another big problem I am facing.
In the English language, "Mega Menu" opened --(i have shared a screenshot), but when I changed the language to other, the "Mega Menu" option is not showing.

Can you please take a look and let me know how we can fix this ?

New threads created by Carlos Rojas and linked to this one are listed below:

https://wpml.org/forums/topic/split-when-we-change-language-on-page-then-page-layout-will-be-me-sup/

Screenshot 2025-12-05 190633.png
December 5, 2025 at 2:13 pm #17638929

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

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

Because the original ticket was solved, I have split this ticket, and we will continue working on the new one: http://wpml.org/forums/topic/split-when-we-change-language-on-page-then-page-layout-will-be-me-sup/

This way, we will be following our support policy of solving one issue per ticket. I'm closing this ticket now.

December 6, 2025 at 4:31 am #17639965

frederikc-7

Thank you Carlos

December 8, 2025 at 6:28 am #17642756

frederikc-7

issue resolved