Solution to hiding or showing different text in the language switcher
-
Hello, I looked everywhere to change the language code in the switcher, and since I didn’t find anything, I came up with a CSS solution. Hopefully somebody will find it useful. Just paste this code in your theme’s styles file:
.bogo-language-switcher .en-US&:after { //replace .en-US with your language code //leave content property empty if you don't want to display any text. Ex: content:=""; content:"ENGLISH"; } .bogo-language-switcher li { position:relative!important; display:inline-block!important; height:20px!important; width:auto!important; margin-right:5px!important; padding-left: 20px!important; } .bogo-language-switcher li a {display:block!important; text-indent: -9999px!important; width:100%!important; position:absolute!important; right:0!important; }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Solution to hiding or showing different text in the language switcher’ is closed to new replies.