[Resolved] Change breakpoint in headermenu of wpml flags switcher
This thread is resolved. Here is a description of the problem and solution.
Problem:
The Enfold theme language switcher was moving to the new line on mobile devices.
Solution:
I have followed the below steps in order to fix this issue:
1. Added WPML Language Switcher from WPML >> Languages > Menu Language Switcher.
2. Disabled the existing Enfold theme language switcher by following the below steps:
- Went to Enfold >> Theme Options page.
- Clicked on Header >> Extra elements tab.
- Set the Enfold WPML Language Flags option to Hide the default language flags by pressing the save button.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
I use Elfold with a child theme. I have included the flags language switcher in the headermenu. When I have a screen below 750 pixels, The language switcher moves one line below the header menu.
I want the switcher to stick to the header menu and not have a breakpoint. The language switcher should just move together with the headermenu.
Is there any css or other code that would make this possible?
Thank you for the answer.
It did not resolve my issue. On a mobile screen, the flags still drop down below the words:"Veilig Reizen"
When I look into the code, I see that the flags have their own
html tag with their own class. .
When I move the <LI> with all the flag codes inside the <UL> tag of the avia2-menu, the flags behave as they should. But I can only do this in the inspector of the browser and have no idear how to code this.
Would be great if you can help me with that.
To take a closer look at this issue, please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and debug the issue.
Your next answer will be private, meaning only you and I can access it.
=== Please backup your database and website ===
✙ I would additionally need your permission to deactivate and reactivate Plugins and the Theme and to change configurations on the site. This is also a reason the backup is essential.
Thanks for providing the login details. I have followed the below steps:
1. Added WPML Language Switcher from WPML >> Languages > Menu Language Switcher so that it adds the “li” list item in the existing “ul” tag.
2. Disabled the existing language switcher by following the below steps:
- Went to Enfold >> Theme Options page.
- Clicked on Header >> Extra elements tab.
- Set the Enfold WPML Language Flags option to Hide the default language flags by pressing the save button.
Now the switcher is with the header menu, as seen in the attached screenshot. Please check and confirm.
Thank you so much for this fix. I could not do it without you.
Once again, thank you so much.
Henk-Jan
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.