This thread is resolved. Here is a description of the problem and solution.
Problem:
If you're experiencing a large gap in the language frame when selecting the second language on your site, it might be due to custom code added through your theme, a plugin, or the backend.
Solution:
We recommend checking the width setting for the submenu in your site's CSS. You can resolve this issue by setting the width to 'auto' instead of a fixed pixel value. Here's how you can do it:
1. Navigate to your site's backend.
2. Go to Appearance > Themes > Customizer > Custom CSS area.
3. Add the following CSS code and save:
.wdt-header-menu ul li ul.children, .wdt-header-menu ul li ul.sub-menu {<br /> width: auto !important;<br />}
This adjustment should help eliminate the unwanted gap when switching languages.
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If issues persist, please open a new support ticket.
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.
This topic contains 1 reply, has 2 voices.
Last updated by 9 months, 3 weeks ago.
Assisted by: Mihai Apetrei.