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: Not WPML issue
This topic contains 4 replies, has 2 voices.
Last updated by arnoP-3 1 year, 9 months ago.
Assisted by: Christopher Amirian.
Author | Posts |
---|---|
April 3, 2023 at 7:10 am #13387303 | |
arnoP-3 |
Hi, I found that the language switcher does not work (dropdown does not open) on two pages that were recently translated. Whether that is the reason I don't know. It does work on other pages. WP Rocket and Cloudflare are disabled. Any ideas what might cause this? I can get you a login if you need to check the site. Kind regards, |
April 3, 2023 at 8:31 am #13387863 | |
Christopher Amirian Supporter
Languages: English (English ) Timezone: Asia/Yerevan (GMT+04:00) |
Hi Arno, Would you please go to WordPress Dashboard > WPML > Languages > Footer Language Switcher and enable that option? Then go to the front end of the website and use that at the bottom of the page and see if the second language flag shows there or not. If yes, then it must be a Javascript issue happening on that page and you can test the steps below to find the culprit: - IMPORTANT STEP! Create a backup of your website. But if the second language flag does not show in the footer language switches that shows that the page is not translated correctly. For that please do as follows: - Go to your Dashboard > Pages. If the problem is still there, I'd appreciate it if you could give me the URL/User/Pass of your WordPress dashboard after you make sure that you have a backup of your website. Make sure you set the next reply as private. And please give me the link to the page in question. Thank you. |
April 3, 2023 at 12:23 pm #13389787 | |
arnoP-3 |
Hi Christopher, Thanks for the suggestions. I went through all of it and finally found that it is caused by a setting of the Advanced Ads plugin. It has page-specific settings. If I disable the setting "Disable ads on this page" (so, allow ads), then the language switcher works fine. If I do not allow ads, the switcher is stuck and does not show the secondary language. The browser console does not throw any errors. I guess I will have to contact Advanced Ads. Kind regards, |
April 3, 2023 at 1:38 pm #13390771 | |
Christopher Amirian Supporter
Languages: English (English ) Timezone: Asia/Yerevan (GMT+04:00) |
Hi Arno, I'm glad that you have managed to find the culprit. Thanks. |
April 3, 2023 at 4:24 pm #13392851 | |
arnoP-3 |
Hi Christopher, For future people with the same issue: it was not caused by Advanced Ads either. It was a coincidence that without the ad, the language switch happened to have not enough space below it. So, the dropdown item did technically work but was not visible. I needed to add more bottom margin. I'll close this ticket now. Thanks, |