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 thread is resolved. Here is a description of the problem and solution.

Problem:
We would like the language switcher to be same width as the menu item. Screenshot:
https://cdn.wpml.org/wp-content/uploads/2019/04/3711051-example_2.jpg?x36833

Solution:
You can fix this issue by adding the following CSS in your theme’s or child theme style.css file OR Custom CSS section of the theme:

.main-header-menu .wpml-ls-item .sub-menu {
   width: auto;
}

This topic contains 2 replies, has 2 voices.

Last updated by testalize.me 5 months, 3 weeks ago.

Assigned support staff: Noman.

Author Posts
April 30, 2019 at 12:44 pm #3711051

testalize.me

Hi there,

We would like the language switcher the be same width as the menu item.
See attachment.

Could you please help out?

April 30, 2019 at 1:09 pm #3711249

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. You can fix this issue by adding the following CSS in your theme’s or child theme style.css file OR Custom CSS section of the theme:

.main-header-menu .wpml-ls-item .sub-menu {
   width: auto;
}

And it will look as in attached screenshot.

Thank you

May 1, 2019 at 1:43 pm #3718383

testalize.me

My issue is resolved now. Thank you!