Home>Support>Setting Background of only certain pages with Custom CSS

Setting Background of only certain pages with Custom CSS

I am not super CSS literate but I’m working on learning.

On the webpage in question I only want two pages (And their children) to have a darker background from the rest of the website. I thought I had it figured out with page-id-119 but that didn’t seem to work, or I’m putting it in the wrong location in the code.

Can anyone tell me where in the following code I need to put the page id for it to work correctly? And is it possible to extend it to all child pages or will I have to repeat this code with the id of every child page?

.panel > .panel-body {
  background-color: #000000;
}

.main-content {
  background-color: #1a1a1a;
  color: #ffffff;
}

.main-content h3 {
  color: #ffffff;
}

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 6 years, 11 months ago Alex S
    Hi, I Work Here

    Hi,

    I’d like to help you with this issue, but unfortunately, this is beyond the scope of the support we’re able to offer on our free forums. There is a fair amount of custom work involved.

    We do offer this level of support to our premium users, so if you’d like to upgrade to SiteOrigin Premium, then I can help you over email support.

    If you’d prefer not to upgrade to SiteOrigin Premium, then you can hire a WordPress developer from Codeable. They’ll charge you an hourly rate for any work done.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More