Posted By

bitsculptor on 10/18/12


Tagged

login css wordpress


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

rostowner
zemonte


Custom login page changes for Wordpress


 / Published in: PHP
 

This allows you to change the logo, title text, and url for the login logo in wordpress.

  1. function custom_login_logo() {
  2. echo '<style type="text/css">
  3. .login h1 a { background-image: url("http://craveacademy.com/wp-content/uploads/wordpress-logo.png") !important; }
  4. </style>';
  5. }
  6. add_action('login_head', 'custom_login_logo');
  7.  
  8. function custom_login_url(){
  9. return 'http://www.craveacademy.com/';
  10. }
  11. add_filter('login_headerurl', 'custom_login_url');
  12.  
  13. function custom_login_logo_title(){
  14. return 'Crave Academy';
  15. }
  16. add_filter('login_headertitle', 'custom_login_logo_title');

Report this snippet  

You need to login to post a comment.