WordPress.org

Support

Support » Themes and Templates » [Resolved] Change Background Container On Page Only

[Resolved] Change Background Container On Page Only

  • centraloverland

    @centraloverland

    Hi.

    This is my page: http://centraloverland.com/blog/?page_id=1664

    I’d like to change everything you see in white to black. For this page only.

    I learned how to add the css syntax to make the larger background gray:

    <?php if (is_page(‘1664’) ):
    // page 1664 ?>
    <style type=”text/css”>
    body {background-color:#505050;}
    </style>

    …But I’m having a terrible time getting the container to comply. Any help from you syntax pros out there?

    Thanks a million!

    wc

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi
    If you add this code to the above code, beneath the body line it should do the trick.
    div#container {background-color: #505050;}
    Your white sheet will turn black, and because you add it to the above code, it will only be black at this particular page.

    centraloverland

    @centraloverland

    That did the trick! I see what I was doing. Totally makes sense.

    Thanks so much!

    Case closed. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Change Background Container On Page Only’ is closed to new replies.
Skip to toolbar