Wordpress - Customize the Logo of Your WordPress Login Page

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

From Web Design Ledger "13 Useful Code Snippets for WordPress Development"

Copy this code and paste it in your HTML
  1. function my_custom_login_logo() {
  2. echo '<style type="text/css">
  3. h1 a { background-image:url('.get_bloginfo('template_directory').'/images/custom-login-logo.gif) !important; }
  4. </style>';
  5. }
  7. add_action('login_head', 'my_custom_login_logo');

URL: http://webdesignledger.com/tips/13-useful-code-snippets-for-wordpress-development

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.