This thread is resolved. Here is a description of the problem and solution.
Problem:
If you're experiencing an issue where an Elementor button points to a page and does not switch to the respective language when changing languages, staying directed at the default English language instead.
Solution:
First, ensure that the template containing the button is translated. Follow these steps:
1. Navigate to Templates -> All -> Header in your WordPress dashboard.
2. Use the translation editor to translate the header template.
After translating the header template, the button should correctly point to the translated post. For further guidance, we recommend checking our guide on translating Elementor templates.
If the button still does not work correctly after these steps, or if you encounter additional issues such as with the query loop, we suggest opening a new support ticket for each separate issue.
Please note that the solution provided might be irrelevant due to being outdated or not applicable to your case. We highly recommend checking related known issues on the WPML known issues page, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem 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: Documentation request
This topic contains 15 replies, has 2 voices.
Last updated by luyenD-2 2 years, 12 months ago.
Assisted by: Osama Mersal.
Author | Posts |
---|---|
February 1, 2022 at 2:49 am #10475443 | |
luyenD-2 |
I have an Elementor button that points to an existing page. When I switch between languages the link does not switch its respective language, but stays pointed at my English default language. See screenshot, of how I add and link the button. If I use the button functionality in Gutenberg, then it works as expected, and the URLs show up like below correctly with languages part of the permalink as such: English > /book-tickets/ Is this a bug? Thanks for any help. |
February 1, 2022 at 10:20 am #10477731 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Thanks for contacting WPML forums support. I'll be glad to help you today. 1) Could you please login to this sandbox site and create a test page using the same button widget? (hidden link) After that, please translate this page to replicate the issue. If the issue is replicable, please tell me the steps to reproduce it. 2) It's not related to the issue, but according to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. Minimum requirements for WPML are 128Mb. (Kindly check this page https://wpml.org/home/minimum-requirements/) Add this to the top of wp-config.php to increase WP memory: /** Memory Limit */ define('WP_MEMORY_LIMIT', '256M'); define( 'WP_MAX_MEMORY_LIMIT', '256M' ); Thanks for your cooperation Regards, |
February 1, 2022 at 5:41 pm #10482523 | |
luyenD-2 |
Thanks Osama, one thing I forgot to mention - my bad, is the two instances where the permalinks weren't updating to their respective languages were: 1) Site header I thought i'd share that if it's helpful, I'll see if I can replicate in the sandbox! |
February 1, 2022 at 5:43 pm #10482529 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Thanks for your update. Please try to replicate the issue on the sandbox site, so we can debug it and check how we could fix this. Thanks for your cooperation Regards, |
February 1, 2022 at 6:06 pm #10482667 | |
luyenD-2 |
Thanks for your quick reply Osama - if you can help me focus on the first issue, that's more important due to the site launch later today. hidden link If you look at the button in the site header, and toggle the language - it keeps pointing to the english version only. I attached a screenshot, so you can see what I see: 2) For the query loop issue I was describing, I realized sorry that I'm using another plugin for custom Elementor query loop templates. This might be causing an issue, and out of scope for you to look at it. If it's not, let me know and I can install it on the sandbox. Thanks for your help, much appreciated. |
February 1, 2022 at 6:14 pm #10482713 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, 1) Thanks for replicating the first issue. I've checked the sandbox site and found that the template is not translated, so I've translated the header template using the translation editor. After that, the translated header is correctly pointed to the translated post. Would you please check the translated page and let me know if the button works correctly? 2) For the query loop issue, we can split this into another ticket after fixing the first issue. Thanks, |
February 1, 2022 at 6:43 pm #10483007 | |
luyenD-2 |
Hi Osama, wow that's amazing. Can you point to the URL where the site header is translated? I didn't know you could do that, but that makes total sense now. |
February 1, 2022 at 6:46 pm #10483009 | |
luyenD-2 |
Confirming that what you did works, thank you. |
February 1, 2022 at 6:46 pm #10483015 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Kindly go to Templates-> All-> Header. (hidden link) After that, you can translate the header. Please check our guide about translating Elementor templates. (https://wpml.org/documentation/plugins-compatibility/elementor/#translate-elementor-templates) I hope this helps you. If you need further info, please let me know. Best regards, |
February 1, 2022 at 6:52 pm #10483047 | |
luyenD-2 |
Thank you that definitely helps me - i realize why i never saw the translation, Elementor has a table view and the gallery view of the templates. The gallery view never shows the translation option, so once I switched back I saw it. |
February 1, 2022 at 6:55 pm #10483055 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, I hope that fixes the button links on your site. If it did, please install the custom Elementor query loop on the sandbox site and try to replicate the other issue. Thanks, |
February 1, 2022 at 6:57 pm #10483061 | |
luyenD-2 |
Thanks again - now I understand the issue is the same with the site header, i just need to have the template translated. You're a life saver, cheers. |
February 1, 2022 at 7:15 pm #10483143 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, It's great to hear that. If you need any further assistance, please let us know. We are always happy to help you. Have a good day! Kind regards, |
February 2, 2022 at 4:05 am #10485375 | |
luyenD-2 |
Hi Osama, I'm running into two issues I'm hoping you can help me understand better. 1) Joining Segments - this works fine, until i make an edit in the original language and then go back in and edit in Chinese, I have to join segments over again. This is very tedious on one page where there's about 50 joins, I can't save until I finish them all. I read this is a bug that developers are working on? 2) The other issue which I went through documentation, but does not appear to be working for me is preserving the URL slug in the original language. So basic example, is my slug is "lunar-new-year" but a new chinese slug is generated based on the translated title. I want to always keep the slugs in english. I've attached a screenshot of what I believe are the correct settings. Thanks. New threads created by Osama Mersal and linked to this one are listed below: https://wpml.org/forums/topic/split-elementor-button-permalink-only-points-to-default-language/ |
February 2, 2022 at 9:07 am #10487521 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, In our forum, we try to keep one issue per ticket. As the original issue is resolved, I've split the other questions and created a new ticket with this issue. (https://wpml.org/forums/topic/split-elementor-button-permalink-only-points-to-default-language/) Continuing with one ticket per issue helps supporters focus on one issue at once and enables other users to find solutions to their questions faster. Thanks for your understanding Regards, |