Jump to content

Simplify Weglot Language Selector

Recommended Posts

Hi everyone,

I was wondering if it is possible to have some custom code so that the weglot language selector is not a drop down but just a static list? 

Screenshot2023-08-28180629.thumb.png.ce5ca828950a990c36dd20f131ad3cc6.png

 

What I want is the first image, and what I have is the second and third attached screenshots. Any help would be appreciated. Weglot said that I could do this by having JavaScript integration, but I'd like to avoid that if possible. Thank you!

 

 

Screenshot2023-08-28180722.thumb.png.48adde0d10b85654105c1cb60259cd4c.pngScreenshot2023-08-28180753.thumb.png.b692153ce2a812f07da907ebecf5e8b6.png

Link to comment

You can add this to Website > Website Tools > Custom CSS

@media screen and (max-width: 991px) {
.header-menu-nav-folder {
    transform: translatex(0);
    will-change: transform;
}
div#multilingual-language-picker-mobile .header-menu-nav-folder-content {
    justify-content:end;
}
.header--menu-open .header-menu .header-menu-nav-list {
    display: flex;
    flex-direction: column;
}
.header-menu-nav-folder--active {
        flex-grow: 1;
    }
#multilingual-language-picker-mobile  .header-menu-controls {
    display: none;
}
.header-menu-actions.language-picker.language-picker-mobile {
    display: none;
}
.header-menu-nav-folder {
    min-height: unset;
    position: static;
	overflow: hidden !important;
	margin-top: -20px !important;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.