Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS WP Custom Login Page CSS

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #32875
    CrownOfMars
    Member

    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?

    #75338
    Brightonmike
    Member
    function custom_login() {
    echo ' }

    That code works fine. I know it does because I posted it :P

    This is mine:

    Custom Login Page

    Link me to yours and I’ll take a look?

    #75334
    Brightonmike
    Member

    May I add, there is essentially no way to “delete” the default CSS, you just have to over-ride it.

    #75248
    jacorre
    Participant

    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';
    }
    #75246
    jacorre
    Participant

    You can also try the Theme My Login plugin.

    #136597
    kaleazy
    Member

    Wordpress recommends a way to do this safely: http://codex.wordpress.org/Customizing_the_Login_Form

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘CSS’ is closed to new topics and replies.