Skip Navigation

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 15 replies, has 3 voices.

Last updated by piernunzioP 1 year, 11 months ago.

Assisted by: Long Nguyen.

Author Posts
June 14, 2023 at 12:00 pm #13824803

piernunzioP

Tell us what you are trying to do?
I can't change header as per each language. hidden link

Is there any documentation that you are following?
I have refer document as well.

Is there a similar example that we can see?
Nope

What is the link to your site?
hidden link

June 14, 2023 at 12:50 pm #13825279

Ahmed Mohammed
Supporter

Timezone: Africa/Cairo (GMT+03:00)

Hi there,

Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with the first debugging steps or if I can help with the issue quickly.

Theme options will not be saved according to the language you select via the language switcher in the admin bar.

In case the header template is translated, the theme should automatically load the translated header. If this does not happen or if you require different headers for different languages, you can translate the ID of the header, as explained in Step #3 of this guide: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#strings-arent-selected-for-translation.

Please give that a try and let us know how it goes.

June 15, 2023 at 8:30 pm #13835407

piernunzioP

That I understood but you see, for example logo is seprated from header then how can I put home page link in single header??
suppose there are 3 types of language. English, Italian and Danish in these 3 languages have different language code like
xyz.com/en
xyz.com/it
xyz.com/de

how can I give link in single header logo?

currently I have created different headers like this and assign pagewise, hidden link

is it correct??

June 16, 2023 at 3:39 am #13836059

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated. Your next reply is set to private to share the info.

❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: 
https://wordpress.org/plugins/duplicator/
✙ I would need your permission to de-activate and re-activate Plugins and the Theme and to change configurations on the site if needed. This is also a reason the backup is critical.

While checking the debug info, I see that the WordPress Memory Limit is below the requirements. The minimum requirements are 128M, but we do recommend 256M and the debug information of your site shows it set to 40M. Please check this link for more details
https://wpml.org/home/minimum-requirements/.
You can increase it by adding the following code in your wp-config.php file, right before the /* That’s all, stop editing! Happy publishing. */ line:


define( 'WP_MAX_MEMORY_LIMIT', '256M' );
define( 'WP_MEMORY_LIMIT', '128M' );

After adding the code you can confirm that the memory was changed correctly from WPML > Support > WordPress > Memory limit.

Look forward to your reply.
Thanks

June 16, 2023 at 7:30 am #13836961

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

You are using the internal URL in the image widget, it is adjusted by WPML automatically for translation URL. You can add an external URL like https://wpml.org/ then search for the URL in Advanced Translation Editor to translate it.
Please read more in the documentation https://wpml.org/faq/how-to-translate-urls-shortcodes-and-html-attributes-using-the-advanced-translation-editor/

Or you can go to WPML > String Translation > Find the URL and translate it on your site, please see this screenshot hidden link

Look forward to your reply.
Thanks

June 18, 2023 at 7:38 pm #13846243

piernunzioP

Hello Support,
I did exactly same as your given help. Please take a look below screenshot.

1) Go to powerlegal > Templates and edit Header template. (hidden link)
2) I have translate and save it (hidden link) but not effect in hidden link

3) I have also translate in LOGO url. GO to WPML > String translation. edit below element (hidden link) but still not effect in english site.

All credentials are same given as previous private chat information. Please let me know what is going wrong and what option I miss to select?

June 19, 2023 at 2:27 am #13846599

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

If you edit a page and select the setting "Main Header Layout": "Inherit". That means you use the header in the theme options.

To translate the header in the theme options, please go to WPML > String Translation > Translate the option name "[pxl_theme_options]header_layout" with the ID of the header in the English language as my colleague suggested above. Please check this screenshot hidden link

And read more in the documentation https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#strings-arent-selected-for-translation

Now you can see the location and logo URL display correctly in English language, screenshot hidden link

Look forward to your reply.
Thanks

June 19, 2023 at 6:12 am #13846849

piernunzioP

Hello Support,
Thanks for assistant. but can you let me know how you have created "[pxl_theme_options]header_layout" in menu item. because I want to do same for footer and sticky footer. I can't find option for that.

how you created this option : hidden link

June 19, 2023 at 7:53 am #13848315

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Please go to WPML > String Translation > Scroll to the bottom and click on "Translate texts in admin screens" > Search for the relevant keywords, such as "pxl_theme_options" and add theme options to String Translation.

It is already mentioned in the documentation https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#strings-arent-selected-for-translation

The theme "Powerlegal" is not available in our list of compatible themes, which you can check here https://wpml.org/theme/.
I suggest you contact the theme author and ask them to join our Go Global program where our Compatibility developers will help them to make their product compatible with WPML.
https://wpml.org/documentation/support/go-global-program/

Look forward to your reply.
Thanks

June 19, 2023 at 9:31 am #13849591

piernunzioP

I got it option but in english language have issue. can you look this? hidden link how to resolve this?

June 19, 2023 at 9:40 am #13849647

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

The default language of theme options is English, you can change the source language of strings by following the documentation https://wpml.org/documentation/getting-started-guide/string-translation/how-to-change-the-source-language-of-strings/
and check this screenshot hidden link

Look forward to your reply.
Thanks

June 19, 2023 at 10:35 am #13850373

piernunzioP

Hello Support,
I just made translation in some page but not its automatically change to italian. Can you tell me how automatic translation can turn off? hidden link

-Thanks,
Tushar

June 19, 2023 at 11:35 am #13850917
piernunzioP

I made changes in all pages. but I was surprise why all made auto translations. can you just let me know where is a option in which I can disable auto translations?

New threads created by Long Nguyen and linked to this one are listed below:

https://wpml.org/forums/topic/split-i-cant-change-header-in-theme-options-2/

June 19, 2023 at 6:23 pm #13854041
piernunzioP

Hello Support,
My current default language is "Italian" and install contact form is in english already. I have installed multilang contact form. not I can't translate into italian because existing contact form consider as italian but its language is in english. Please take a look. hidden link

Please reply asap. I am waiting for your response since 8 hrs ago.

New threads created by Long Nguyen and linked to this one are listed below:

https://wpml.org/forums/topic/split-i-cant-change-header-in-theme-options/

June 20, 2023 at 1:29 am #13855069

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

We can handle one issue per ticket only so I will split your new questions into other tickets. If you see the main issue of this ticket with the header translation is resolved, please mark it as Resolved.

Thanks.