Changing the WP Login Logo

/ Published in: PHP
Save to your folder(s)

Copy this code and paste it in your HTML
  1. // login page logo
  2. function custom_login_logo() {
  3. echo '<style type="text/css">h1 a { background: url('.get_bloginfo('template_directory').'/companylogo.png) 50% 50% no-repeat !important; }</style>';
  4. }
  5. add_action('login_head', 'custom_login_logo');

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.