• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Custom Background (outside content area) on individual pages

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Custom Background (outside content area) on individual pages

This topic is: resolved

Tagged: backgrounds, css

  • This topic has 2 replies, 2 voices, and was last updated 11 years, 10 months ago by john scheine.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • June 22, 2013 at 9:40 am #47181
    john scheine
    Member

    This is what I am trying to accomplish, without adding any additional Plugins:

    I would like my individual blog post background colors to be different then my page background colors. (We are not talking about the content area, as we have already used css on individual pages to make them black while posts are white background in the content area)

    Here is an example of an individual blog post: http://www.longislandmarketingcompany.com/10-examples-brand-facebook-covers/
    Here is a page example: http://www.longislandmarketingcompany.com/about-long-island-marketing-company/

    This is the css portion of the code used to change the content area background on individual pages. (required additional code added to php) Posts are not controlled by individual coding.

    /* Change Content Area Background Color – Post or Page */

    body.page-id-95 #content {
    background: #000;
    }

    body.page-id-39 #content {
    background: #000;
    }

    Note: This is done for all interior pages (would be redundant to repeat code for all pages)

    How do I accomplish the same thing through css/php but for the page backgrounds on individual pages?
    Thank you for your help. Hopefully I'm being clear on what I am trying to accomplish.

    http://www.longislandmarketingcompany.com/
    June 22, 2013 at 5:57 pm #47231
    rfmeier
    Member

    Hello,

    Did you already solve this problem? I see your css is now more abstract for all pages;

    body.page #content {
    background: #000;
    }

    Ryan Meier – Twitter

    June 22, 2013 at 7:09 pm #47240
    john scheine
    Member

    Yes, i have resolved the issue. Someone in the other post helped me out (The post was double posted. Apparently spam filter for studiopress was blocking my posts.) FYI had to use :
    body.page.custom-background {
    background: #000;
    }

    Thanks for reaching out to me.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Custom Background (outside content area) on individual pages’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble