Language Selector Styling
Adding your own CSS code or HTML button
Override language selector CSS
<aside data-wg-notranslate class="country-selector weglot-dropdown weglot-default weglot-invert">
<input id="weglot_choice" type="checkbox" name="menu">
<label for="weglot_choice" class="wgcurrent wg-li weglot-flags flag-0 en" data-code-language="en">
<span>EN</span>
</label>
<ul>
<li class="wg-li weglot-flags flag-0 fr" data-code-language="fr">
<a data-wg-notranslate href="http://example.com/">FR</a>
</li>
</ul>
</aside><aside data-wg-notranslate class="country-selector weglot-inline weglot-default weglot-invert">
<input id="weglot_choice" type="checkbox" name="menu">
<label for="weglot_choice" class="wgcurrent wg-li weglot-flags en" data-code-language="en">
<span>English</span>
</label>
<ul>
<li class="wg-li weglot-flags fr" data-code-language="fr">
<a data-wg-notranslate href="http://example.com/fr/">Français</a>
</li>
</ul>
</aside>.country-selector a {
text-transform: uppercase;
}Override CSS on the WordPress back office
Override CSS using WordPress Hook
Don't load Weglot CSS file
Override language selector HTML Markup
Hook parameters:
Example: Adding code before/after the button
Example: Rebuild the language selector from scratch
Change language selector title
Add class current-menu-item for language selector in menu
Manage auto-redirect
Last updated