WordPress.org

Ready to get started?Download WordPress

Forums

How to change website background? (5 posts)

  1. dbongi22
    Member
    Posted 6 months ago #

    Would anyone be able to tell me using developer tools, what part of my theme's CSS file do I need to edit to change my websites background color?

    I've played around a bit and can't seem to change it from black.

    Click here for my website

    Thanks!

  2. virendra930
    Member
    Posted 6 months ago #

    hi dbongi22,
    Go to your style.css in your theme or make child theme and open style.css
    on style.css on line no 224 you find these code

    body {
        background-attachment: fixed;
        background-color: #5E5E5E;
        background-image: url("images/Bottom_texture.jpg");
        background-position: left top;
        background-repeat: repeat;
        color: #000000;
        height: 100%;
        margin: 0;
        min-height: 100%;
        min-width: 1000px;
        padding: 0;
    }

    just replace it with this code

    body {
        background-attachment: fixed;
        background-color: #FFF;
       background-position: left top;
        background-repeat: repeat;
        color: #000000;
        height: 100%;
        margin: 0;
        min-height: 100%;
        min-width: 1000px;
        padding: 0;
    }

    change your background color whatever you want and one thing more at line no 239 you`ll find this code so remove it also

    background-image: url("images/Middle_texture.jpg");

    and make sure to backup your css before changing hope it`ll help you

  3. dbongi22
    Member
    Posted 6 months ago #

    Thanks, virendra930! I'm going to give it a try in a little bit and I'll let you know how it goes!

  4. dbongi22
    Member
    Posted 6 months ago #

    Hmm, it appears it didn't work. I did all of that but there was no change. Currently, I have the color changed in the CSS, yet no result is appearing on the website.

  5. dbongi22
    Member
    Posted 6 months ago #

    Yes, thank you I know CSS and how it works. What I can't understand is why when I change the background color in CSS, no changes are applied.

    Thanks.

Reply

You must log in to post.

About this Topic