• 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

Change background color of specific page

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 › Change background color of specific page

This topic is: resolved

Tagged: change color, page

  • This topic has 1 reply, 1 voice, and was last updated 10 years, 8 months ago by Tim Squires.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • August 5, 2015 at 6:50 pm #161539
    Tim Squires
    Member

    Hello, I am using the Agency Pro theme.

    I need to change the background color of a specific page. Just to keep things simple for now I'm trying to change it to black, but will use a different color once I know the right code.

    I have tried this code, without success:

    .page-id-162 .content {
    background-color: #000;
    }

    The only way that I can change the color is if I alter it here, but that goes site-wide and is not restricted to the specific page that I need:

    .entry {
        background-color: #FFF;
        border-radius: 3px;
        margin-bottom: 40px;
        padding: 40px 40px 24px;
    }

    The above code would be fine if only I knew how to restrict its application to the single page.

    Any suggestions are much appreciated, thanks!


    timsquires.com.au

    http://www.mountains.timsquires.com.au/background-color/
    August 5, 2015 at 7:38 pm #161540
    Tim Squires
    Member

    It's OK - I think I have worked it out. This code seems to work, but only if I paste it directly after the existing code under "Entries". Previously I had been adding code to the end of my style sheet.

    /* Entries
    --------------------------------------------- */
    
    .entry {
    	background-color: #fff;
    	border-radius: 3px;
    	margin-bottom: 40px;
    	padding: 40px 40px 24px;
    }
    
    .page-id-128 .entry {
    	background-color: #000;
    }
    

    timsquires.com.au

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 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