Skip Navigation

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

Problem:
The client is experiencing issues with the WPML Language Translator widget not working on mobile devices when placed within the Microwidget area of The7 Theme.
Solution:
We have investigated the issue and found that the language switcher functions correctly when placed on a page, but not within the Microwidget area of The7 Theme. This suggests that the problem is specific to the theme, possibly due to mobile performance or design considerations, or incorrect event handling for mobile devices. We recommend reporting this issue to the The7 theme support for further assistance, as they can provide insights into theme-specific settings or issues that may need to be resolved.

Please note that the solution provided here might be irrelevant if it's outdated or not applicable to your case. If the issue persists, 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 you still need help, please do not hesitate to open a new support ticket. For further assistance, you can reach out to us on the WPML support forum.

100% of people find this useful.

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 9 replies, has 2 voices.

Last updated by Prosenjit Barman 1 year, 1 month ago.

Assisted by: Prosenjit Barman.

Author Posts
April 9, 2024 at 9:26 am #15497834

estudio-comercialS

Tell us what you are trying to do?
All settings and reset pluggin

Is there any documentation that you are following?
yes

Is there a similar example that we can see?
No

What is the link to your site?
hidden link

Screenshot_4.png
April 9, 2024 at 9:29 am #15497891

estudio-comercialS

The widget of WPML Language Translator is not working in mobile, short screen.

Screenshot_4.png
April 10, 2024 at 6:56 am #15502372

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support.

I understand the problem you're having. Upon reviewing your site, I noticed that you've added the language switcher using the default language switcher element provided by your theme, The7.

Given that your site uses a different header for mobile devices, could you kindly remove the existing language switcher from the mobile header and integrate WPML's default language switcher instead?

Please check this guide to understand how you can display language switcher using Shortcode: https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/adding-language-switchers-using-php-and-shortcodes/#language-switcher-shortcodes

By doing so, we'll be able to determine whether the issue with the language switcher persists on mobile devices in general or is specifically related to your theme's language switcher functionality.

Let me know the update. I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

April 10, 2024 at 12:46 pm #15504868

estudio-comercialS

Sir, the mobile widget did not work with the instructions given by you, please suggest some other solution sir.

April 11, 2024 at 4:58 am #15506829

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
Thank you for trying out the suggestions.

I noticed that the version of the `The7` theme that you're using is outdated. The theme's Script libraries have been updated in versions released after the one you have (you can view the updates in the changelog here: hidden link). Given that the issue at hand appears to be script-related, I strongly recommend updating the theme to the latest version(11.11.3).

Once the Theme is updated, remove and add the Language switcher again using the Shortcode or the default language switcher element of the `The7` theme and check if you;re still having the issue.

Let me know how it goes. I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

April 15, 2024 at 7:50 am #15517441

estudio-comercialS

We have updated the theme properly but the widget is not opening on the phone.

April 16, 2024 at 2:36 am #15522203

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thank you for the update.

As the issue persists despite the suggestions, a closer inspection will be required to understand the root cause of the issue.

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 have a testing site where the issue is replicated.

You will find the needed fields below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.

IMPORTANT
-Please backup site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
hidden link

Looking forward to your response.

Best Regards,
Prosenjit

April 17, 2024 at 3:40 am #15528966

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thank you for sharing the access information.

I've checked and found that the language switcher only doesn't work when it's placed within the Microwidget area of The7 Theme. However, when the language switcher is placed on a page, it functions correctly. For a clearer view, you can visit this page (hidden link) from a mobile device to see how the language switcher placed on the page works.

It's possible that the theme disables certain features on mobile devices for performance or design considerations, or the event handling on mobile devices isn't configured correctly. Given that the language switcher functions correctly on other parts of the site and only encounters issues within the Microwidget area of the The7 theme, it would be best to report the issue to the The7 theme. They can provide insights into theme-specific settings or issues that may need to be resolved.

I hope you can understand. Please feel free to let me know the update or anything else you need help with. I will be happy to assist.

Best regards,
Prosenjit

April 23, 2024 at 8:22 am #15554238

estudio-comercialS

Good afternoon sir,
Since you told me that WPML will not run in micro widget, please tell me the option so that it can run in micro widget only.
Or please tell us the code files so that we can do custom coding and run the WTML in the head section.

April 24, 2024 at 3:48 am #15558558

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
I hope you're doing well.

I understand how important it is for the WPML language switcher to function correctly in the microwidget area of your website.

Since the issue appears specifically when the WPML shortcode is placed within the microwidget(you can place the language switcher shortcode on any page to test), it suggests that this might be related to the unique way `The7` theme handles its widget areas. Often, such issues require a detailed look into the theme's coding and structure, which is best handled by the theme's support team who are experts in their product’s code base.

Instead of making changes in the code, the most effective course of action would be to reach out directly to the `The7` support team. They are well-equipped to provide specific guidance and, if necessary, a tailored solution that ensures compatibility between their theme and the WPML plugin within the microwidget area.

While I wish I could resolve this directly, my goal is to guide you toward the fastest and most effective solution, and in this case, that involves using the specialized knowledge of The7’s support team.

If you have any more questions or need further assistance with anything else, please feel free to let me know. I will be happy to help.

Thank you for your understanding and cooperation.

Best regards,
Prosenjit