• Resolved Justin McGuire

    (@vijustin)


    I have been using the action add_action( ‘login_head’, array( $this, ‘customLogoStyle’ ) ); to drop in some custom CSS to replace the logo that shows up on the login page. This has worked great until I started using this plugin to move the login page to another URL. Is there a different filter I should be hooking into to add some custom CSS to the new login page to override the logo?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support MaximeWPS

    (@seinomedia)

    Hello,

    Thanks for using WPS Hide Login.

    The login_head hook still works with WPS Hide Login (tested this morning).

    I think you should try a simpler method to get your logo adding the code below into your theme functions.php.

    function mylogo() {
        echo "<style>#login h1 a { background-image: url('your_logo_path.png'); }</style>";
    }
    
    add_action('login_head', 'mylogo');
    Thread Starter Justin McGuire

    (@vijustin)

    Thanks this code does work when in my theme’s functions.php file. I have a plugin that is basically doing the same thing code wise but it stops working after activating WPS Hide Login so I’ll have to investigate a bit more.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘action ‘login_head’ no longer working’ is closed to new replies.