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

Home Forums Support [Resolved] Is it be possible to place the Polylang language switcher on the right?

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

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1995688
    Josep C.

    Hello,

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

    Thank you,
    Josep

    #1995811
    David
    Staff
    Customer Support

    Hi there,

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

    #1996233
    Josep C.
    #1996253
    David
    Staff
    Customer Support

    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;
        }
    }
    #1996524
    Josep C.

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

    #1996929
    David
    Staff
    Customer Support

    Glad to hear that!

    #1997005
    Josep C.

    Thanks, David!

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.