Skip to content

Instantly share code, notes, and snippets.

@alt-karate
Created June 25, 2021 03:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alt-karate/1c2f04449cca3e5922c82165a3f931d0 to your computer and use it in GitHub Desktop.
Save alt-karate/1c2f04449cca3e5922c82165a3f931d0 to your computer and use it in GitHub Desktop.
(参考サイト) https://tanweb.net/2019/04/16/26316/
// ログイン画面のロゴ変更
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