Skip Navigation

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 contains 5 replies, has 2 voices.

Last updated by benM-13 1 year, 7 months ago.

Assisted by: Mihai Apetrei.

Author Posts
September 17, 2022 at 3:36 am #12070727

benM-13

The language switcher is messing up the formatting on my wp-login page. I am using buddyboss with a captcha. I have managed to hide the language switcher on the registration page using css.
body.page-id-11176 .wpml-ls {
visibility: hidden !important;
}
but, I cannot find the page ID for the login page. The option in settings of unchecking " Show Language Switcher on login and registration pages" does not seem to work as the language switcher is still displayed.

September 17, 2022 at 11:32 am #12071697

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

I think you can use the following CSS to hide the language switcher on the login page:


.wpml-login-ls {
    display: none !important;
}

Please let me know how that goes.

Kind regards,
Mihai Apetrei

September 18, 2022 at 12:26 am #12072659

benM-13

hi, thanks for the reply. Unfortunately this didn't work as the switcher is still on the login pages.
hidden link

September 19, 2022 at 8:19 pm #12081693

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there and thank you for the update.

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.

Our Debugging Procedures

I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.

Privacy and Security Policy

We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

**IMPORTANT**

- Please make a backup of the 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

I will be waiting for your response.

Kind regards,
Mihai Apetrei

September 20, 2022 at 4:35 pm #12089217

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Thank you.

I added this code in the functions.php file of the currently active child theme:


add_action('login_head', 'hide_wpml_switcher_in_login_page');

function hide_wpml_switcher_in_login_page() {
  echo '<style>
    .wpml-login-ls {
    display: none !important;
}
  </style>';
}

That fixed it 🙂

Mihai

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.