I have a widgetless site and I’ve used the code snippet you provided which provides a dropdown menu to select the language.
Mimi kuwa na tovuti ya widgetless na nimepata kutumika code snippet wewe zinazotolewa ambayo inatoa dropdown menu ya kuchagua lugha.