WordPress.org

Support

Support » Themes and Templates » Changing the background color in the text area

Changing the background color in the text area

  • I am using the twentyten 1.1 theme, but would like to have a black background on the home pages. On the other pages, it would be great if I could just have the top section be black (so the header would blend into it). Is this possible? If so, can someone walk me through how to do it? Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi

    @esmi

    Forum Moderator

    It’s possible but you need to start by creating a child theme otherwise your changes will be over-written the next time you upgrade WordPress.

    That makes sense. Is there an easy way to make a child theme? or does it involve a lot of CSS knowlege?

    esmi

    @esmi

    Forum Moderator

    If you check the link I gave above, you’ll see that it’s actually very easy. You don’t need much CSS knowledge at all to put the child theme together and get it working. Once the child’s stylesheet has been set up, you can use the CSS @import to pull the parent’s CSS into the child. so, for a child of Twenty Ten, you’d have something like:

    /*
    Theme Name:My Theme
    Version: 1.0
    Theme URI: [Put your site's url here]
    Description: A custom child theme of Twenty Ten
    Template: twentyten
    */
    @import url(../twentyten/style.css);

    From then on, you only need to add the CSS (or template files) that you want to change.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changing the background color in the text area’ is closed to new replies.
Skip to toolbar