CSS file controlling site background color?

Discussion in 'Appointway WordPress Theme' started by darrel, Jun 22, 2013.

Thread Status:
Not open for further replies.
  1. darrel

    darrel New Member

    Joined:
    Oct 8, 2012
    Messages:
    14
    Likes Received:
    0
    What is the name of the css file and where is it located that controls the website background image and/or background color?

    I have played around with style.css in the root theme folder as well as the theme color css file and no matter what I do it doesn't seem to change the background color.

    I know I can upload an image through the admin but what if I just want to change the color from a white background to a different color.

    I know I can insert custom code in the admin but I really want to know what file and where is the code located that controls the background color.

    Thanks
     
  2. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello,

    Current white background is a default color. We have not added any css code for it.
    header.php file is responsible for background.
    Check image for reference.

    background.png
     
  3. darrel

    darrel New Member

    Joined:
    Oct 8, 2012
    Messages:
    14
    Likes Received:
    0
    So, you don't change background colors. You have to upload a background image whether it be a "solid color image" or a "designed background image".
    Correct?
     
  4. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
    Hello,
    You can apply background color also.
    Paste this code in Custom CSS
    Appearance > Theme Option > Styling Option > Custom CSS
    Code:
    body {
    background: yellow ! important;
    }
    In place of "yellow" you can put your color or color code.
     
  5. simplyruschelle

    simplyruschelle New Member

    Joined:
    Jul 23, 2013
    Messages:
    18
    Likes Received:
    0

    Hello,

    Thanks for the code. Any way to add a hex code instead? I wanted to change the background to a light gray, but when I put gray, it's too dark and light gray does not work within the code.

    Thanks!!
     
  6. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
  7. simplyruschelle

    simplyruschelle New Member

    Joined:
    Jul 23, 2013
    Messages:
    18
    Likes Received:
    0

    Thank you!! Worked perfectly. ;-)
     
Thread Status:
Not open for further replies.

Share This Page