Since version 4.5 login_enqueue_scripts Doesn't ovewrite the default styles
-
Hello,
After updating to WP 4.5 my styles to customize the login page do not overwrite the default WP styles. Here is the link Here’s my code:
function my_login_logo() { ?> <style type="text/css"> .login h1 a { background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/assets/images/logo.png); padding-bottom: 30px; width: 297px; height: 64px; background-size: 297px; } .login form { -webkit-box-shadow: 0 1px 6px rgba(0,0,0,.4); box-shadow: 0 1px 6px rgba(0,0,0,.4); } .login label { color: #333; } .login #nav a { color: #007CAD; } body, html { background: #fff; } </style> <?php } add_action( 'login_enqueue_scripts', 'my_login_logo' );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Since version 4.5 login_enqueue_scripts Doesn't ovewrite the default styles’ is closed to new replies.