SHARE
TWEET

Untitled

a guest Oct 14th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Change logo on login page */
  2. function my_login_logo() { ?>
  3.     <style type="text/css">
  4.         #login h1 a, .login h1 a {
  5.             background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/путь/к/картинке.png);
  6.         height:XXXpx;
  7.         width:XXXpx;
  8.         background-size: XXXpx XXXpx;
  9.         background-repeat: no-repeat;
  10.         margin-top: XXXpx;
  11.             padding-bottom: XXXpx;
  12.         }
  13.     </style>
  14. <?php }
  15. add_action( 'login_enqueue_scripts', 'my_login_logo' );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top