Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client needed to reinstate the language option next to the search icon on their website. During the translation process, the entire header was deleted, and although the flags were restored, they were incorrectly positioned and styled.
Solution:
We recommended the client to ensure they have a backup of their site, which can be done using the UpdraftPlus plugin. After confirming the backup, we provided custom CSS to correct the positioning and styling of the language switcher. Here is the CSS code we used:

@media (min-width: 600px) {
  body .wpml-ls-legacy-dropdown .wpml-ls-sub-menu .wpml-ls-item a {
    width: 30px!important;
    position: relative!important;
 
}
 
.wpml-ls-legacy-dropdown .wpml-ls-sub-menu {
    top: 62px!important;
}
 
body .wpml-ls-legacy-dropdown .wpml-ls-sub-menu .wpml-ls-item a:hover {
    color: transparent !important;
}

.sitepress_container > .wpml-ls ul ul li a:hover::after {
background-color: transparent!important;
}
}

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your 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 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.

Tagged: 

This topic contains 2 replies, has 0 voices.

Last updated by homeP 3 weeks, 2 days ago.

Assisted by: Kor.

Author Posts
October 27, 2025 at 1:43 pm #17522316

homeP

Tell me how I can reinstate the language option next to the search icon.

hidden link

It should be like it was before.
hidden link

October 27, 2025 at 6:47 pm #17523533

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. I've inspected the header menu and I don't see a way to move the language switcher to the right or next to the search icon. I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

October 30, 2025 at 1:04 pm #17532794

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. I've applied the custom CSS code below and could you please check?

@media (min-width: 600px) {
  body .wpml-ls-legacy-dropdown .wpml-ls-sub-menu .wpml-ls-item a {
    width: 30px!important;
    position: relative!important;

}

.wpml-ls-legacy-dropdown .wpml-ls-sub-menu {
    top: 62px!important;
}

body .wpml-ls-legacy-dropdown .wpml-ls-sub-menu .wpml-ls-item a:hover {
    color: transparent !important;
}

.sitepress_container > .wpml-ls ul ul li a:hover::after {
    background-color: transparent!important;
}
}
November 2, 2025 at 4:45 pm #17538759

homeP

Hey, thanks, it works perfectly!