- This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
My head is about to explode.
How do i completely remove the css styles associated with the /wp-login.php pages so i can create my own? I do not want to venture into the wp-admin folder and edit the css files in there.
I discovered this functions script in another thread but it’s not working:
function custom_login() {
echo '
}
I then created the file custom-login.css in my template directory with a few css style properties but nothing changed.
Anyone?
function custom_login() {
echo '
}
That code works fine. I know it does because I posted it :P
This is mine:
Link me to yours and I’ll take a look?
May I add, there is essentially no way to “delete” the default CSS, you just have to over-ride it.
You can add the following to the functions.php file for your theme:
/* This sets a user-defined logo for the login page. */
function custom_login_logo() {
echo '';
}
add_action('login_head', 'custom_login_logo');
/* This sets the url for the login logo. */
add_action( 'login_headerurl', 'my_custom_login_url' );
function my_custom_login_url() {
return 'http://www.yourdomain.com';
}
You can also try the Theme My Login plugin.
Wordpress recommends a way to do this safely: http://codex.wordpress.org/Customizing_the_Login_Form