WordPress login screen


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

Source: https://css-tricks.com/snippets/wordpress/customize-login-page/
Put them in your theme functions.php or make it a plugin.


Copy this code and paste it in your HTML
  1. // Change login logo
  2. function custom_login_logo() {
  3. echo '<style type="text/css">h1 a { background: url('.get_bloginfo('template_directory').'http://cdn.css-tricks.com/images/logo-login.gif) 50% 50% no-repeat !important; }</style>';
  4. }
  5. add_action('login_head', 'custom_login_logo');
  6.  
  7. // Change logo URL
  8. function change_wp_login_url() {
  9. return bloginfo('url');
  10. }
  11. add_filter('login_headerurl', 'change_wp_login_url');
  12.  
  13. // Change login title
  14. function change_wp_login_title() {
  15. return get_option('blogname');
  16. }
  17. add_filter('login_headertitle', 'change_wp_login_title');

URL: https://css-tricks.com/snippets/wordpress/customize-login-page/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.