WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [closed] How to change the background color of one page in twenty twelve (8 posts)

  1. dragonfly66
    Member
    Posted 1 year ago #

    I am building a static site, no posts. I need to have one page only have a different background color than the rest. I have a child theme and have been playing around with it but the css change is global. I'm thinking there is a way to do this by using the page id/name but when I use Firebug I don't see anything specific to any page.
    http://finishingstrong.dvkweb.com/

  2. michael.mariart
    Member
    Posted 1 year ago #

    <body class="home page page-id-4 page-template-default custom-background single-author singular two-column left-sidebar">

    The identifier is right there:

    page-id-4

    Add something like this to your CSS file (in your child theme of course):

    body.page-id-4 {
        background-color: #FF0000 !important;
    }
  3. dragonfly66
    Member
    Posted 1 year ago #

    Wow. I over think things sometimes. Thanks!

  4. xsil11
    Member
    Posted 1 year ago #

    HI, I am using Revolutions Lifestyle Theme, on http://www.onlinepsychicadvisors.com I would like to change the background color for one of my pages, but I am having trouble with this. I tried going into content, and changing it on my home page, but I ended up losing that style on the css page..so now, Im at a loss. I was afraid to go any further with it for fear I would lose more! My site pages are still in tact, but the color never changed for the background. It is white now, I would like to change it to a lavender. I hope someone can help with this! Thanks alot!

  5. xsil11
    Member
    Posted 1 year ago #

    As it turns out, My site pages are NOT still in tact! I thought they were until I went to my site to look at it. The reason I thought they were intact is because In edit, they are all showing up correctly. What can I do now? I tried to do a restore, but I have a question about that. Do I have to pick the files, one by one and do them that way? Or is there an easier way to go about this? I really hope you can help me!

  6. Andrew
    Forum Moderator
    Posted 1 year ago #

    Have you contacted your theme's vendors regarding your troubles?

  7. xsil11
    Member
    Posted 1 year ago #

    Yes I did..thank you..

  8. Andrew
    Forum Moderator
    Posted 1 year ago #

    Excellent.

Topic Closed

This topic has been closed to new replies.

About this Topic