Wordpress - Change Login logo and login LINK


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



Copy this code and paste it in your HTML
  1. function custom_loginlogo() {
  2. echo '<style type="text/css">
  3. h1 a {background-image: url('.get_bloginfo('template_directory').'/images/login_logo.png) !important; }
  4. </style>';
  5. }
  6. add_action('login_head', 'custom_loginlogo');
  7.  
  8.  
  9. <?php
  10. add_filter( 'login_headerurl', 'custom_loginlogo_url' );
  11. function custom_loginlogo_url($url) {
  12. return 'http://www.wpbeginner.com';
  13. }
  14. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.