This thread is resolved. Here is a description of the problem and solution.
Problem:
The client needed help with customizing the font, size, and color of the language switcher text in different parts of their website, including changes when the header is fixed. They also needed guidance on targeting the switcher in the sidebar after switching from a footer to a widget-based switcher.
Solution:
1. To change the color of the language switcher in the top header, we advised adding custom CSS in the site's backend under Appearance > Customizer > Custom CSS. Here is the code to use:
.wpml-ls-legacy-list-horizontal a {<br /> color: red !important;<br />}
The 'color' value can be changed to any desired color or hexadecimal code. More information on CSS color properties can be found at:
- https://www.w3schools.com/cssref/pr_text_color.php
- https://www.w3schools.com/cssref/css_colors_legal.php
- https://www.w3schools.com/cssref/css_colors.php
2. For customizing the output of the language switcher shortcode, we recommended using the settings in the 'Custom language switcher' section on the WPML -> Languages page. Detailed guidance is available here:
https://wpml.org/documentation/support/wpml-coding-api/shortcodes/#wpml_language_selector_widget
Please note that this solution might be outdated or not applicable to your specific case. 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 this does not resolve your issue, please open a new support ticket 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.
This topic is split from https://wpml.org/forums/topic/split-change-language-names/
This topic contains 8 replies, has 2 voices.
Last updated by 10 months, 3 weeks ago.
Assisted by: Mihai Apetrei.