[wp-trac] [WordPress Trac] #20538: remove wp_admin_css from login-site
WordPress Trac
wp-trac at lists.automattic.com
Wed Apr 25 09:25:07 UTC 2012
#20538: remove wp_admin_css from login-site
--------------------------+------------------------
Reporter: Ninos Ego | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version: 3.3.1
Severity: normal | Resolution: duplicate
Keywords: close |
--------------------------+------------------------
Changes (by SergeyBiryukov):
* keywords: needs-patch close => close
* status: new => closed
* resolution: => duplicate
* milestone: Awaiting Review =>
Comment:
It should be possible to customize login page by hooking into
`login_enqueue_scripts` action (and using `!important` in style
definitions if necessary):
{{{
function customize_my_login_page() {
wp_enqueue_style('my-login-style', '.../my-login-style.css');
wp_print_styles();
}
add_action('login_enqueue_scripts', 'customize_my_login_page');
}}}
`wp_print_styles()` needs to be added in this case, since it's not called
automatically for `login_head`. Related discussion:
[comment:ticket:17916:12].
Closing as a duplicate of #19130.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20538#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list