• My team has developed an intranet page with a MS Azure log in placed above – but the vendor needs access to the wp admin log in. We are afraid this will be confusing for our staff, is there a way to hide the WP log in from the log in page? Tuck it into a show/hide toggle, or have a button to launch a modal? Our vendor is saying they are extremely restricted with that page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    You could hide the login box with CSS, then use JavaScript to toggle the display property between none and block. Example CSS to start with:
    #loginform { display: none; }

    FWIW, it is feasible to create a completely custom login screen independent of wp-login.php. wp_signon() could be called to authenticate and log in a user. You can even do your own authentication as long as the user is set as the current user and their auth cookie is set.

    The WP login screen does more than log in users, there are registration and lost password features. A custom login screen could implement these as well as long as they mimic what wp-login.php does.

    Hello @anitabot ,As per my opinion try to bellow suggestion,

    To add a show/hide toggle for the WordPress admin login box on your custom intranet page, you can use jQuery and some CSS to achieve this. Here’s a simple solution:

    [1] Add this jQuery code to toggle the login form visibility:

    jQuery(document).ready(function($) {
    $(‘#toggle-wp-login’).click(function() {
    $(‘#wp-admin-login-box’).toggle();
    });
    });

    [2] Add this HTML button and login form structure:

    Show/Hide WP Admin Login

    This will add a button to show or hide the WordPress login form. Ensure you enqueue jQuery correctly in your theme for it to work.

    thanks best regard

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.