Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. <?php
  2.  
  3. // Add styles to the login page
  4. function login_css() { ?>
  5. <style type="text/css">
  6. /* Change the WP logo to your own */
  7. #login h1 a, .login h1 a {
  8. background-image: url('<?php echo get_stylesheet_directory_uri(); ?>/path/to/logo.png');
  9. height: 150px;
  10. width: 150px;
  11. background-size: 150px 150px;
  12. background-repeat: no-repeat;
  13. }
  14. </style>
  15. <?php }
  16.  
  17. // Change the URL of the link wrapping the logo
  18. add_action( 'login_enqueue_scripts', 'login_css' );
  19. function my_login_logo_url() {
  20. return home_url();
  21. }
  22. add_filter( 'login_headerurl', 'my_login_logo_url' );
  23.  
  24. // Change the title of the link wrapping the logo
  25. function my_login_logo_url_title() {
  26. return 'Integrous Fences and Decks';
  27. }
  28. add_filter( 'login_headertitle', 'my_login_logo_url_title' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement