Skip Navigation

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

Problem:
The client needed to disable the language selector from the login screen and was experiencing a 503 error with the MemberPress plugin when WPML was activated.
Solution:
To hide the language switcher on the login page, we recommended adding the following CSS to the site:

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

This code was added in the

functions.php

file of the currently active child theme using the following function:

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>';}

For the 503 error issue with the MemberPress plugin, we did not make any changes to WPML settings as the plugins were disabled. We suggested that this issue might require a new ticket as it appears to be unrelated to the CSS changes made.

Please note that the solution provided might be outdated or not applicable 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 the issue persists, please open a new support ticket.

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

Last updated by Mihai Apetrei 2 years, 7 months ago.

Assisted by: Mihai Apetrei.

Author Posts
November 13, 2022 at 6:48 pm #12448905

ardeleanv

Hi, how do i disable the leangue selector from login screen?

login5.png
November 13, 2022 at 7:07 pm #12449105

Mihai Apetrei
WPML Supporter since 03/2018

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

November 13, 2022 at 7:28 pm #12449121

ardeleanv

Still not working you can check aswell hidden link

November 14, 2022 at 8:44 pm #12458059

ardeleanv

any help?

November 14, 2022 at 11:00 pm #12458445

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

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

Hi there and thank you for the confirmation.

Sorry for the delayed response but it is a pretty full queue at the moment so it can take a bit longer to get back to 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.

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.

Mihai

November 16, 2022 at 2:42 pm #12474275

Mihai Apetrei
WPML Supporter since 03/2018

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

November 16, 2022 at 2:44 pm #12474295

ardeleanv

Now it seems the memberpress plugin is not working anymore, if you go an register to any memberpress plan is not working its giving 503 and if you dezactivate wpml its working fine

November 16, 2022 at 2:53 pm #12474369

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

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

Hi there.

I did not touch WPML in any way, plus the WPML plugins were all disabled when I logged into the site.

I just added some CSS code into the child theme that will work specifically on the login page.

So if this happens, it will definitely happen with or without the code that I added, when WPML is enabled and if that is the case, this issue would require a new unique ticket as it is a different issue.

Also, please notice that there's a new update available for WPML:
hidden link

Mihai

November 16, 2022 at 3:00 pm #12474401

ardeleanv

Ok i understand i did open a new tiket can you help me out to sort out this please?

November 16, 2022 at 3:05 pm #12474421

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

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

Thank you for the confirmation.

There is a pretty full queue at this point so it can take a while until one of my colleagues will be able to take that new ticket.

Thank you for your understanding.

Mihai