Archived topic
language dropdown in menu bar items
7 replies · Started by Srini on September 28, 2022
HI
can help me to move language dropdown to menu bar items?
Regards
Srini
Hi Srini,
Specifically, how are you adding it currently?
Hi Fernando,
Currently, I am using default method of showing in primary menu. Please check attached link.
I see.
I believe WPML has a Shortcode for the Language Switcher widget.
I found this: https://wpml.org/documentation/support/wpml-coding-api/shortcodes/#wpml_language_switcher
You can add this Shortcode through a Hook Element hooked to generate_menu_bar_items. Make sure Execute Shortcodes is enabled.
Thanks for your guidance, Short code is working for desktop view in menubar items, but now displaying in mobile menu.
You have this code in Additional CSS:
.menu-bar-items {
display : none !important;
}
You'll need to remove that for it to appear.
Ok, Thank you
You're welcome Srini!