Hi dleigh, thank you for using Language Switcher for Transposh.
Unfortunately, currently there is no way to do what you want. I’m a bit busy now, but I’ll try to implement this function as soon as possible.
I’ll let you know when it will be available.
Regards
Thread Starter
dleigh
(@dleigh)
Thanks for the reply. Even just a hook/filter that would allow replacing the text would be great.
Thanks.
Hi, dleigh.
Sorry for the delay and… Happy New Year.
I have released an update of LSfT which add the options to use language codes in the switcher both in basic switcher and in custom list. The next step wil be to make availabel the same option in the select too.
Hope this will help you to deign your webstie yhe way you want 🙂
Thread Starter
dleigh
(@dleigh)
Hi,
Happy New Year!
Sorry it’s taken me a while to test this. Just got to it today.
The “[lsft_horizontal_codes]” works fine. However, the dropdown ([lsft_custom_dropdown_codes]) gives me the flags for some reason. Perhaps I’m missing a step that I need to do?
Thanks for the efforts at improving this!
Hi.
Happy New Year to you too! 🙂
Your request prompted me to begin a rather extensive refactoring process.
Please bear with me: I’ll be releasing version 2.0 very soon with all the changes I hope will prove to be improvements.
Thanks. I’ll leave you a message in this forum as soon as the new release is released.
Cheers
Hi.
Version 2.0.1 is available for download. Let me know your thoughts.
Cheers
Thread Starter
dleigh
(@dleigh)
Hi,
Currently on 2.0.5. Seems to be working well. The new options are appreciated.
We’ve decided to implement the horizontal codes (lsft_horizontal_codes) output. I may have missed it, but I don’t see a way to style the currently selected language code differently? Is there a way currently or could another class be added to the “li” or “a” element of the currently selected language code?
Thanks!
Hi.
Just released version 2.0.6. I’ve added the class ‘current-lang’ to the current language item in horizontal and vertical switchers. You’ll be able to to add custom Css using this class to change background-color or add a bottom border, for instance. The only limit is your imagination 😉
Just as an example, in the CssEditor provided by LSFT you can add a rule like this one:
li.lang_switcher.current-lang {
border-bottom: 1px solid #eaeaea;
}
Remember to save your changes.
Obviously, you can add the same type of rule using the Customizer or any plugin which provides this funcionality.
Cheers