This thread is resolved. Here is a description of the problem and solution.
Problem: The client is trying to reduce the space between flags in the dropdown menu of the language switcher.
Solution: If you're experiencing excessive space between flags in your language switcher's dropdown menu, we recommend trying the following CSS code. Navigate to Appearance > Customizer > Custom CSS and add:
.wpml-ls-menu-item ul.sub-menu a {padding-top: 0px !important; padding-bottom: 0px !important;}
This code should remove the padding from the top and bottom of the flags, bringing them closer together. For more information on how to use CSS and the padding property, you can visit https://www.w3schools.com/css/css_padding.asp.
Please note that the solution provided might not be relevant to your case, as it could be outdated or not applicable to your specific situation. If this solution does not resolve your issue, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please do not hesitate to open a new support ticket with us.
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.
They are currently spaced even due to the styling of the theme or any custom code that was added on the site - practically, the space between the two flags is the same space that exists between the other buttons in the menu.
To overwrite that behavior, please go to Appearance > Customizer > Custom CSS > Add the following code and save:
Thank you for your answer and didn't recieve an email so thought you hadn't answer yet.
It's for a dropdown meny and the flags have a lot of space vertical but now I redid a lot of things so have not succeded to put more than 1 language but maybe you anyway can give me a css code for that?
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.