Site logo

Archived topic

WPML language switcher in new line

16 replies · Started by Łukasz on February 25, 2021

Viewing posts 16–17 of 17

Hello again
We need another approach to get good result.
Actually I see that when I add something to CART also english version changes and flags are NOT in new line

theres no easy way of controlling that. You can however set a different width for english and Polish using this CSS:

/* Max width for English site */
.main-navigation .main-nav>ul {
  max-width: 700px;
}

.nav-float-right #site-navigation {
  margin-left: 10px;
}

/* Max Width for Polish site */

html[lang="pl-PL"] .main-navigation .main-nav>ul {
  max-width: 700px;
}

html[lang="pl-PL"] .nav-float-right #site-navigation {
  margin-left: 10px;
}

Adjust the max-width and margins to control the two navigations.

This archived topic is closed to new replies.