Tagged: wpml
-
AuthorPosts
-
October 3, 2020 at 6:24 pm #1250340
Hi there! I’m using WPML and would like to add a language switcher to my mobile menu so it will appear between the logo and the hamburger menu. Any idea how I can do this? I found guides from WMPL support site but did’t get what I was looking.
How to set only mobile phone language switcher clickable dropdown?
As in the picture in attachment.
October 6, 2020 at 6:39 pm #1250905Hey Tuomo,
Please the screenshot to a service like Dropbox or http://imgur.com and give us the link here. We cannot see the image in the post above.
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
VictoriaOctober 6, 2020 at 6:51 pm #1250906October 6, 2020 at 9:39 pm #1250979Hi Tuomo,
Is this the website you’re working on? I can see the language flag next to the menu and then on the burger flyout.
Please have a look at the following thread:
If you need further assistance please let us know.
Best regards,
VictoriaOctober 6, 2020 at 10:27 pm #1250996Yes, I’m working on that site.
On desktop flags are on the right side of the menu. It’s fine and do not need any changes.
I’m trying to make changes in mobile menu. I’m trying the insert the flag switcher next to the burger menu. Flag switcher is now in burger menu, but that’s not the best place.- This reply was modified 4 years, 2 months ago by Tuomo.
October 13, 2020 at 5:34 am #1252411Hi,
Thank you for the update.
There is a shortcode called wpml_language_selector_widget that we could use to display the language switcher inside the header beside the mobile menu. We could either add the shortcode directly in the header.php or the includes > helper-main-menu.php file, or use the available hooks inside the mentioned template.
This documentation should help.
// https://kriesi.at/documentation/enfold/header/#adding-a-header-widget-area
We could then use a few css media queries to toggle the visibility of the default and new language switchers.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.