Custom the login page
PHP
function new_login_logo() { /* 自訂登入畫面LOGO */ echo '<style type="text/css">.login h1 a { background-image:url('.get_template_directory_uri().'/assets/img/logo.svg) !important; background-size: contain!important; width:320px!important; }.login {background-image:url('.get_template_directory_uri().'/assets/img/bg-login.jpg); background-size: cover!important; background-position: 100% 50%;} #loginform,#lostpasswordform{border-radius: 20px;} .login #nav{display:none;} </style>'; } add_action('login_head', 'new_login_logo' ); function custom_loginlogo_url($url) { return get_bloginfo('url'); } /* 變更自訂登入畫面上LOGO的連結 */ add_filter( 'login_headerurl', 'custom_loginlogo_url' ); function put_my_title(){ return ('Company Name'); } /* 變更自訂登入畫面上LOGO的Hover所出現的標題 */ add_filter('login_headertext', 'put_my_title');