wp-login.php trouble removing admin style
-
For security sometimes I password protect the wp-admin folder on the server. However this is causing a problem when subscribers try to log in via the wp-login.php
Line 64 and 65 or wp-login.php:
wp_admin_css( 'wp-admin', true ); wp_admin_css( 'colors-fresh', true );I can comment out these two lines then copy the css to my template directory or even write my own styling
then re-apply it to the page with an action
add_action('login_head', 'childtheme_custom_login');
Codex Reference ‘login_head’now wp-login.php calling the css from my template directory and does not require the wp-admin folder password because it is no longer trying to access files.
However, that’s where I am stuck. I do not want to edit core wordpress files. Even if its a simple edit.
How can I achieve the same result solely from my functions.php ?I have tried lots of action hooks, deregistering styles, etc nothing seems to work.
the wp_admin_css calls wp_print_styles and I can’t seem to hook into that properly either. When I add an action to wp_print_styles and reload the page, it does not call the applied action.
The topic ‘wp-login.php trouble removing admin style’ is closed to new replies.