I was not receiving a reply in chat so I moved the chat into a forum ticket for follow up. If you have created different menus for desktop and mobile then you should be able to achieve it by following the below steps:
1. Go to the WPML >> Languages page
2. Edit the Menu language switcher settings for the mobile menu.
3. Choose the “First menu item” option and press the Save button as you can see in the attached screenshot.
Please let me know if this resolves the issue or if you need further assistance with this issue.
Hello.
It is really very inconvenient to chat with you guys, tech support. You tend to close the chat when I really need help.
Regarding your advice, I can not follow it as it simultaneously corresponds to my both menus I created for desktop and phone. For desktop I need the switchers to be the last item and not in the drop down menu.
So where can I change the switchers separately from the desktop, relating it only to phone drop down menu?
I am attaching the settings I made for the desktop. I could not find another place for a phone menu.
Thank you for your feedback, and I apologize for any inconvenience caused during our chat.
To address your query, there isn't a straightforward way to achieve separate settings for the language switcher on mobile and desktop menus. However, you can accomplish this using one of the following methods:
Method 1: Using a Custom Language Switcher and Shortcodes
1. Please enable the Custom Language Switcher from WPML >> Languages > Custom Language Switcher section and set the language switcher as dropdown for mobile.
2. Please install any plugin which provides an option to use the shortcode in menu items, add first menu item in desktop menu, and use the Custom language switcher shortcode in it:
[wpml_language_selector_widget]
3. Then, you need to use the CSS with media queries to show and hide both language switchers in desktop and mobile view accordingly.
Method 2: Creating Separate Menus for Desktop and Mobile
1. Create a desktop menu from Appearance >> Menus page and set its location as “Primary Menu”.
2. Create a mobile menu from Appearance >> Menus page and set its location as “Secondary Menu”.
3. Enable the CSS Classes option from Screen options as you can see in the attached screenshot.
4. Add the “hide-on-mobile” class to each desktop menu item.
5. Go to the WPML >> Languages > Menu language switcher and make sure to add the language switcher for
the desktop menu.
6. Go to the WPML >> Languages > Menu language switcher and make sure to add the language switcher for the mobile menu.
7. Now, you can hide/show it using CSS as follows:
You may add that CSS in WPML >> Languages > Additional CSS section.
I’ve tested Method 2 on a fresh WordPress site using the Divi theme, and it works as expected. You can check the setup and settings through this auto-login URL: hidden link
Please let me know if this resolves the issue or if you need further assistance with this issue.
Thank you for your cooperation and patience
The topic ‘[Closed] Moving language switcher in the phone menu up to the first place’ is closed to new replies.