WordPressログイン画面のロゴ変更方法
WordPressで制作したサイトのログイン画面をオリジナルのものにする方法です。 ログイン画面のロゴを変更する方法
1 2 3 4 5 6 7 8 9 10 11 12 |
//ログイン画面のロゴを変更する function custom_login() { echo '<style type="text/css"> #login h1 a { background: url('.get_template_directory_uri().'/images/login_logo.png) no-repeat; width: 320px; height: 107px; background-size:100% auto; } </style>'; } add_action('login_head', 'custom_login'); |
上記をfunctions.phpに…