How to change the background color?

Community Forums Forums Design Tips and Tricks How to change the background color?

This topic is: not resolved

This topic contains 20 replies, has 3 voices, and was last updated by  Sunil 1 year, 11 months ago.

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • #10908

    Sunil
    Participant
    Post count: 92

    Hi,

    I hope I can get a response here. This is a very simple question and yet for me its a difficult task to achieve. I’ve been looking through the css files and just couldn’t figure out where to add the color code.

    My site is http://adultacnetreatmentreviews.com. If you look at the site now, the background is all white including the content area.  So the whole site looks very white and wide. I need a background color say maybe some shades of grey so that the content area which I want to leave it as white will stand out.

    Can someone just don’t show me the code snippets but also show me where exactly I need to change it. The theme I’m using is eleven40 theme.

    Thank You.

    Regards,

    Sunil

    #10915

    braddalton
    Participant
    Post count: 10667

    Use the built in Background function under Appearance in your WordPress Dashboard


    #10924

    Sunil
    Participant
    Post count: 92

    Hi Braddalton,

    I don’t see any background function under the Appearance menu. All I see are these options:

    Themes
    Widgets
    Menus
    Editor

    So where is the function?

    #10935

    braddalton
    Participant
    Post count: 10667

    /** Add support for custom background */
    add_theme_support( 'custom-background' );

    This will enable the custom background page

    Add the code to your child themes functions.php file

    You can also use this in your child themes style.css file

    body {
    background-color: orange;
    }


    #10939

    Sunil
    Participant
    Post count: 92

    Hi,

    I’ve added those codes in the functions.php file.
    When I tried to update it, my whole site went blank!

    Now I couldn’t even log in!

    Help!

    #10943

    media317
    Participant
    Post count: 52

    You’ll need to access your site files through FTP or cPanel and remove the code you inserted in functions.php.  Then you can access the site again.

    Change the background color by changing the style.css.  Add the background color to the body div.


    Alan Smith
    Media317

    #10944

    braddalton
    Participant
    Post count: 10667

    I didn’t advise doing that.

    Put the CSS code in your child themes style.css file and the php in your child themes functions.php

    You’ll need to access these files using FTP or your web hosts File manager in cPanel and delete the code you added.

    If you can’t do this, email me your cPanel or FTP details and i’ll fix it.

    brad@wpsites.net


    #10949

    Sunil
    Participant
    Post count: 92

    Hi,

    I uploaded the original functions php file from my pc to the respective theme folder via ftp and it still doesn’t work.

    I’m just an ordinary customer who is seeking to find a good theme for my site. You guys are the experts in php and css coding stuff.

    Why get people like me to mess up with these things? Its really getting very frustrating enough for me. Isn’t there any predesigned themes where we don’t really have to customize a lot?

    All I did was added these codes in the functions.php file,

    /** Add support for custom background */
    add_theme_support( 'custom-background' );

    and the whole site disappeared!

    #10962

    Sunil
    Participant
    Post count: 92

    Hi Brad,

    I’ve already emailed you my login details.

    Hope you received them and help solve the problem.

    Thankyou.

    #10967

    braddalton
    Participant
    Post count: 10667

    You also added } to the end of the php which caused the white screen of death!

    Check your Custom Background page now Sunil.


    #10969

    Sunil
    Participant
    Post count: 92

    Fantastic Brad!

    Thanks a lot! Was the adding of } that messed up everything?

    So how did you do it? I mean just add those codes in to my functions php file and I would get that background function option?

    Yes, I see this option in my admin panel now.

    Is it possible also if you can advise me on how to add a slider on the index page? I’ve already installed the genesis slider plugin. But this is a widget and can only be placed in the right header widget.

    Or do you want me to post this on a fresh new thread?

    #10970

    Sunil
    Participant
    Post count: 92

    I’ve managed to change the background color to a gray shade. But I want the content area to remain white. How should I achieve that?

    Like for eg, the AgentPress theme has a dark blue background while the content area is white.

    http://demo.studiopress.com/agentpress/layouts/cs

    #10973

    braddalton
    Participant
    Post count: 10667

    Slider on Index page?

    What url exactly do you want the slider on?


    #10979

    Sunil
    Participant
    Post count: 92

    I actually want to create a home page just like the Agency theme. There is the slideshow on the first page.

    I was proposing to place a slider on my index page. The url is http://adultacnetreatmentreviews.com.

    The reason I chose the eleven40 theme is because it has a wide content place and it has a great footer design.

    #10980

    braddalton
    Participant
    Post count: 10667

    You can add a widget area to the home page and then use the Genesis responsive slider ( Involves coding ) http://www.briangardner.com/home-widget-area-eleven40/

    or you could use the Genesis Simple Hooks plugin and paste one line of php code for another slider (Easing Slider) in the hook location you want to display the slider


Viewing 15 posts - 1 through 15 (of 21 total)

You must be logged in to reply to this topic.