Site logo

Archived topic

Is it be possible to place the Polylang language switcher on the right?

6 replies · Started by Josep C. on November 8, 2021

Viewing posts 1–7 of 7

Hello,

Would it be possible to place the Polylang language switcher on the right, leaving the main menu centered?
Example

Thank you,
Josep

Hi there,

can you share a link to the site where i can see that ?

Not easy - but give this CSS a shot:

@media(min-width: 1024px) {
    .main-navigation .main-nav>ul:before {
        content: '';
        display: block;
        width: 210px; /* width of 3 x language items */
        margin-right: auto;
    }

    .main-navigation li.lang-item-first {
        margin-left: auto;
    }

    .main-navigation .menu>li:nth-child(3)>a {
        border-right: unset;
    }
}

Brilliant! It works perfectly!
Thank you very much for the effort.

Glad to hear that!

Thanks, David!

This archived topic is closed to new replies.