Custom login page changes for Wordpress


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

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.