Skip Navigation

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

Problem:
You are trying to adjust the background width of the WPML language switcher flag dropdown on your site using Betheme, aiming to make it narrower than other submenu items.
Solution:
We recommend accessing your site's backend, navigating to Appearance > Customizer > Custom CSS, and inserting the following CSS code:

.mfn-header-menu .wpml-ls-item.mfn-menu-li .mfn-submenu {width: 60px !important;}

You can adjust the width by modifying the value, but starting with 60px might achieve your desired effect.

If this solution does not resolve your issue or seems outdated, please check for related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If needed, do not hesitate to open a new support ticket at WPML support forum for further assistance.

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

Last updated by steveK-13 1 month ago.

Assisted by: Mihai Apetrei.

Author Posts
May 23, 2025 at 12:20 pm #17066153

steveK-13

Background of the issue:
I am trying to adjust the background width of the WPML language switcher flag dropdown on my site, which uses the Betheme. The current width is the same as other submenu items, but I want it to be less wide specifically for the WPML flag.

Symptoms:
The WPML language switcher flag dropdown background is too wide due to the theme's default settings.

Questions:
How can I change the background width of the WPML flag dropdown without affecting other submenu items?

May 23, 2025 at 9:07 pm #17067923

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

Can you please share the password so that I can view the site?

I'm being asked for a password to see the site.

Thank you.

Mihai Apetrei

May 24, 2025 at 9:00 am #17068396

steveK-13

Hello,

yes, now on 2nd url: hidden link password: 12345

May 25, 2025 at 10:08 pm #17070600

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Thank you.

Please go to your site's backend > Appearance > Customizer > Custom CSS > and use this CSS code:


.mfn-header-menu .wpml-ls-item.mfn-menu-li .mfn-submenu {width: 60px !important;}

Then, you can play with the value, but 60 might be the one you are looking for.

Hope that's good for you and is doing what you wanted.

Mihai

May 26, 2025 at 11:27 am #17072966

steveK-13

Worked like a charm, thank you very much!