WordPress.org

Forums

Customize WordPress Login (7 posts)

  1. rccard
    Member
    Posted 3 years ago #

    I have created a file, custom-login.css that works fine for me. But for some reason, my background will not show up. Here is the code I am using in the css...

    html { background: url(../images/news_bg.png) 0 0 repeat;}

    Every other modification I have made is working properly. Any idea why this may not be working?

  2. samfusion
    Member
    Posted 3 years ago #

    Is this image news_bg.png inside wp-contents/themes/theme-name/images/ path? Or try simple css for body bg and repeat etc.

  3. rccard
    Member
    Posted 3 years ago #

    Yes. The image is in the images folder. It is my understanding that I can't use "body" within the custom-login.css file. It has to be "html", correct?

  4. samfusion
    Member
    Posted 3 years ago #

    Link?

  5. rccard
    Member
    Posted 3 years ago #

    Right now I'm developing locally... not sure what link to give. I understand it would definitely help... sorry.

  6. alchymyth
    Forum Moderator
    Posted 3 years ago #

    where is the custom-login.css located in relation to the /images folder?

  7. rccard
    Member
    Posted 3 years ago #

    the image folder lies in my theme folder, as does the custom-login folder, then the custom-login.css file is located in the custom-login folder. So the structure, within the theme folder would be:

    >images
    >custom-login
    >>custom-login.css

Topic Closed

This topic has been closed to new replies.

About this Topic