When a user is using WPML, they have the option to have a language switcher on the login/registration page. This is located at the upper middle part of the page by default. If the customer enabled the custom background on the login page, the language switcher will be placed behind the background. To move it, please follow the steps and insert the function code:


1. Go to Appearance > Theme Editor.

2. Under “Select theme to edit”, choose (BuddyBoss Child/whatever theme is active), then click “Select”.

3. Below Theme Files, select Theme Functions (functions.php).

4. Append the code just before the closing PHP tag “?>”:



function custom_login_logo() {

    echo '<style type="text/css">.wpml-login-ls { text-align: right !important; margin-right: 34px !important; } .login form { margin-top: 0px !important; }</style>';

}

add_action('login_head', 'custom_login_logo');


5. Click “Update File” to save the changes.


Note: Any modifications are considered as custom work already. Know more about our Support Policy here: https://www.buddyboss.com/support-policy/


NOTE: Please make a backup of your site.