Can't seem to change the background color in 'theme options'

This topic has 5 replies, 3 voices, and was last updated 9 years, 1 months ago ago by Eva Kemp

  • Avatar: dotsandcrosses
    dotsandcrosses
    Participant
    September 20, 2015 at 22:41

    Hi,

    I just installed this theme, with some demo content and am now trying to customize the website. In theme options there’s an option to change the background of the site, however even if I set it to black, it still stays the same (white).

    Changing the ‘main color’ in theme options works, so I don’t understand why ‘site background’ doesn’t work.

    Thank you for your reply.

    Kind regards,
    Dominique

    Please, contact administrator
    for this information.
    4 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    September 21, 2015 at 10:44

    Hello,

    Site background option works for Boxed layout, which you can select in Theme Options > General > Site Layout.
    To change background color for full width layout you need add this code in Theme Options > Custom CSS > Global Custom CSS:

    .st-content {
        background-color: black;
    }

    Best regards,
    Jack Richardson.

    Avatar: dotsandcrosses
    dotsandcrosses
    Participant
    October 4, 2015 at 14:10

    Hi,

    It works if I add it to Global Custom CSS in Theme Options, but how do I make it work with the style.css in my child theme?
    I’ve added this code to the child theme CSS (even adding !important) but I’m not sure why it doesn’t work.
    Thanks for helping!
    Dominique

    Avatar: dotsandcrosses
    dotsandcrosses
    Participant
    October 4, 2015 at 14:33

    Nevermind, I have found the issue. It appeared the following line was missing from functions.php in my child theme:
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );

    After adding this, the child CSS now works.

    Avatar: Eva
    Eva Kemp
    Support staff
    October 5, 2015 at 12:26

    Hello,

    We’re glad you managed to resolve the issue.

    Have a nice day.

    Regards,
    Eva Kemp.

  • Viewing 5 results - 1 through 5 (of 5 total)

The issue related to '‘Can't seem to change the background color in 'theme options'’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.