Created
June 25, 2021 03:46
-
-
Save alt-karate/1c2f04449cca3e5922c82165a3f931d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ログイン画面のロゴ変更 | |
function login_logo() { | |
echo '<style type="text/css">.login h1 a {background-image: url('.get_bloginfo('template_directory').'/images/login-logo.png);width:●●px;height:●●px;background-size:●●px ●●px;}</style>'; | |
} | |
add_action('login_head', 'login_logo'); | |
// ログイン画面のロゴURL | |
function custom_login_logo_url() { | |
return get_bloginfo( 'url' ); | |
} | |
add_filter( 'login_headerurl', 'custom_login_logo_url' ); | |
// ログイン画面のロゴタイトル | |
function custom_login_logo_url_title() { | |
return 'トップページを表示'; | |
} | |
add_filter( 'login_headertitle', 'custom_login_logo_url_title' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment