• I seem to have encountered another problem πŸ™

    If I put for example, background{#ffffff;) in login.css nothing happens. I have to put it in color-fresh.css but it changes the background in my admin dashboard as well. How do I change just in login? but without plugins.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Why are you avoiding plugins if I may ask?

    Adjusting anything in the core code will have to be redone everytime you upgrade…..I avoid touching any core files like the plague….

    It’s meant to be body{background:#fff;}. You can always create a function if you don’t want to use a plugin, so you don’t have to edit core files.

    Thread Starter virg

    (@virg)

    xdesi thanks! the color appears now but the body ends at the bottom of the #form id. Is there a way to extend it all the way down? I tried height:100% but nothing happened..

    Thread Starter virg

    (@virg)

    RVoodoo

    I don’t like using plugins for theme styling because (from my experience) some of them don’t work or cause some glitch in the theme. And with plugins I can’t do most things I would in the core files.

    But I guess i’ll just have to upload the core files every time I upgrade..

    It’s because they are defining the background colour for HTML, so you need:

    html{ background: #000; } in colors-fresh.

    To avoid having to do it every time you upgrade your WP you can add something like this to your themes functions.php file:

    function admin_bg(){
        echo '<style type="text/css">html{background:#000;}</style>';
    }
    add_action('login_head', 'admin_bg');

    This should add the style code to the head of your login pages.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘changing background just for login.css’ is closed to new replies.