Hide current local in my dropdown menu

Hello guys,
Do you know how to hide my current locale in my dropdown menu ?
We can see the FR (for France) two times… !

Thanks :slight_smile:

CleanShot 2024-04-19 at 19.20.07|173x175

Hi Camille,

The first one is the dropdown toggle, which shows the currently-selected locale.
The second one below is in the list of options to choose.

From a UX standpoint-

  • When the dropdown is closed, this answers “what locale is currently selected?”
  • When the dropdown is open, this answers “what locales can I choose from?”

You can differentiate those by styling them so that it doesn’t look redundant.

I have never tried to hide the current locale from the list, but if you wanted to do that ( and show all locales except the currently selected one ) you might be able to achieve that by styling the “current locale” item as display: none.

Styling here is a bit tricky however I think Webflow has made some improvements since launch.

Thank you Michael !

It works when I only hide the current element ! :)

1 Like