ログイン画面のロゴを変える [WordPress]
タイトルの通り、ログイン画面のロゴをwordpressの丸いロゴから任意の物に交換します。
function.phpに追記します。
//ログイン画面のロゴ
function custom_login_logo() { ?>
<style>
.login #login h1 a {
width: 320px;
height: 64px;
background: url(<?php echo get_stylesheet_directory_uri(); ?>/images/login_logo.jpg) no-repeat 0 0;
}
</style>
<?php }
add_action( 'login_enqueue_scripts', 'custom_login_logo' );
横幅は320pxがシックリくるようです。width,heightとリンクは修正して下さい。
コメント 0