Replaces WPML's default language selector with a compact branded dropdown : current language flag + 2-letter code + chevron, with a CSS-only hover/focus dropdown listing other available languages (flag + native name). Implementation : remove_all_actions on wpml_add_language_selector + register our own renderer. Bricks's wpml-language-switcher element (hdrlng) fires the same action so no template edit needed. Flags via emoji (🇬🇧 EN, 🇫🇷 FR) — no asset path concerns. Dropdown styled to match the rest of the header (navy bg, gold-on-hover, subtle border + shadow). Mobile : dropdown anchors left to stay in viewport. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
6.6 KiB
6.6 KiB