WPML language switcher in topbar

I followed this thread to get wpml into the topbar. However i have the problem that I also want the social icons in the same line like the language switching icons.

Hi,

To make it in the same line as your social icons, you can add the code below in Theme Options > CSS

.language-switcher {
   float:left;
}

If that doesn’t help, kindly provide us your site url so we can take a closer look.

Thanks

great, that worked, thank you!

Another question: when I add the wpml language switcher to the menu with flags only, the menu items are very large. I looked at the wpml forum and they have a css fix for that. But unfortunately that doesn’t work for me. Maybe the x theme css is overwriting something?

Hi there,

Glad it’s okay now, about the size, please add this CSS too

li.wpml-ls-menu-item ul li a, li.wpml-ls-menu-item  a {
width: auto !important;
}

If it’s not working then please provide your site’s URL that has this issue.

Thanks!

No, unfortunately the css doesn’t work either.

Hi There,

Please try with this CSS instead:

#menu-x-menu li:last-child .sub-menu {
    min-width: auto !important;
}

Let us know how it goes!

That’s perfect, thank you very much!

You’re welcome.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.