[Resolved] Main menu drop down for language switcher bad css
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing an issue where the drop-down language switcher in the main menu has bad CSS and does not appear as expected. Solution: We recommend applying custom CSS to adjust the appearance of the WPML language switcher dropdown. You can add the following CSS code to the custom CSS section of your theme to make the language switcher align better with your site's design:
Please note that this solution involves customization that might not be supported in the future due to potential changes in the theme or WPML code. If this solution does not resolve your issue or if it becomes irrelevant due to updates, 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 further assistance is needed, 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.
Thank you for contacting WPML Support. Please note that WPML language switcher dropdown takes formatting from the currently activated theme to make the style consistent with other menu items. To override that style on wpml language switcher dropdown you may try to use the below CSS:
In the custom CSS section of your theme, it will look as in the attached screenshot.
Please let me know if this resolves your issue or if you need further assistance with this issue.
Please understand that I'm helping you here with an issue that is out of the scope of our support forum and we will not be able to support this particular fix in the future. Because the theme or our code might have changed, so please always be aware of this. Right now it's working without any issue.
Hi Noman, thank you for quick reply.
I need a little bit more fine tuning.
I set background transparent, margin-top: 78px and margin-left:-26px; -> desktop looks ok on 24" full hd monitor.
Now on mobile phone is bad position of english flag.
Thank you.
Hi Noman,
On desktop is perfect.
On mobile, flag needs to be little bit more to the left (pic in attachment). I use Samsung S22 Ultra (if you need this info because of resolution).
Thank you.
Best regards.