WordPress.org

Ready to get started?Download WordPress

Forums

Assign a custom CSS to the login page (4 posts)

  1. alby54
    Member
    Posted 2 years ago #

    Hi, I need to style the Login page completely different from the one in the theme I'm using (twentyeleven + child). Since that page is using wp-admin.css by default, what is the best way to have it load a different css sheet?
    I tried - this solution - and didn't work. I also found - this one - which I skipped because it uses JQuery which is creating problems with a plugin that I must use.

  2. Are you trying to style the wp-login page or use a different one?

  3. alby54
    Member
    Posted 2 years ago #

    I need to style the default wp-login.php ... all I need is a way to have it point to a different css sheet than wp-admin.css

    thx

  4. alby54
    Member
    Posted 2 years ago #

    OK, I found the solution for the custom CSS. The reason why it did not work before was because I was using 'get_bloginfo' instead of 'get_stylesheet_directory_uri' (I have a child theme). Meanwhile, my customer changed things around and now he wants a custom login page all the way which means that not only a new CSS sheet will be involved, but also a new markup (I will need to create more nested divs and classes). I understand it is not reccomended touching core files but this cannot be done by simply editing function.php. I heard it is possible to create a static page and then insert the login form into it but I don't know the correct procedure.
    Any suggestion?

    Please let me know if I have to open a different thread since here I was requesting a solution only for the first part of the issue.

    regards

    Alby

Topic Closed

This topic has been closed to new replies.

About this Topic