• Resolved jpite

    (@jpite)


    Is it possible to add a message to the login page with a URL in it? For example, “Please click here to proceed to the live site.”

    This would be in addition to the password field to login to the specific site.

    THnx

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Muhammad Haseeb

    (@haseeb0001)

    @jpite Hi,

    Hope you are doing good.

    At the moment this feature is not available you can get a developer’s help and achieve this via customization and I will try to add this feature in our future plugin release.

    Thanks

    hey @jpite i’ve just found out that it is indeed possible to add a message to the login page (html or whatever you like).

    the plugin’s developers have been kind enough to provide us with a couple of calls for callback actions in the plugin’s /theme/password-protected-form.php file:

    
    <?php do_action( 'password_protected_login_messages' ); ?>
    <?php do_action( 'password_protected_before_login_form' ); ?>
    

    this means you can add a callback function to your theme’s functions.php file and print something out. i used something like this:

    
    function password_protected_message() {
    	echo '... coming soon ...';
    }
    add_action( 'password_protected_before_login_form', 'password_protected_message', 10, 2 );
    

    see this reference for more.

    Thread Starter jpite

    (@jpite)

    Thank you MaxGX – I did get this to work but your solution is much better. Appreciate it!

    you’re welcome 😉

    Plugin Support Muhammad Haseeb

    (@haseeb0001)

    We have released the beta version with new features; you can test it on your staging website and let me know.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add message to login page’ is closed to new replies.