[Resolved] Problem with the language switcher text alignment
This thread is resolved. Here is a description of the problem and solution.
Problem: You are trying to center the text of the language switcher in a widget, but it appears left-aligned due to the theme's CSS overriding your changes. Solution: To center the language switcher text, you need to apply specific CSS rules that can handle the theme's existing CSS. Here is the correct CSS to use:
ul .wpml-ls-menu-item a {
display: flex;
align-items: center;
justify-content: center;
}
If this solution does not work because it might be outdated or not applicable to your case, we recommend opening a new support ticket. Also, 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. For further assistance, please visit our support forum at WPML Support Forum.
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.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
As mentioned, this is actually a topic for the theme support, as it is the theme's style that handles the language switcher but can offer to have a closer look at this and try to adjust this for you.
I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue.
You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.
IMPORTANT
Please make a backup of site files and database before providing us access.
If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link
The steps are also shown in this video: hidden link
ul .wpml-ls-menu-item a {
display: flex;
align-items: center;
justify-content: center;
}
Take note, that usually, theme support always helps with such problems.
Best regards
Andreas
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.