I've replaced the Wordpress logo with my own logo on the login page, and added a message above the login form. When a customer clicks the login button and is successfully authenticated, the custom message immediately disappears, but it takes a second or three of page loading to move/redirect to the target page.
I'd like to replace my logo with an animated gif logo, so it is clearer that the page is loading. Failing that, I'd like to leave the custom message in the same place, so customers won't be as confused. I've seen this page ( ) for modifying the login page, but what I'm looking for doesn't seem to be there. I'd rather not use a plugin, unless it's the only way to do this.
<?php
/* Add message above login form */
function wpsd_add_login_message() {
return 'My Custom Message';
}
add_filter('login_message', 'wpsd_add_login_message');
add_filter( 'gettext', 'register_text' );
add_filter( 'ngettext', 'register_text' );
function register_text( $translating ) {
$translated = ''; // here goes the translation
return $translated;
}
function my_login_logo() {
echo '<style> Here goes my CSS styles</style>';
}
add_action( 'login_enqueue_scripts', 'my_login_logo' );
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745314770a4622165.html
评论列表(0条)