• 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

Parallax Pro Individual Page Backgrounds

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 › Parallax Pro Individual Page Backgrounds

This topic is: not resolved
  • This topic has 2 replies, 2 voices, and was last updated 11 years, 5 months ago by cindyjw.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • November 12, 2014 at 11:23 am #131315
    cindyjw
    Member

    I would like my Pages to have different background images like this website: http://www.surroundslandscaping.com/patio-design-retaining-walls-walkways-mclean-va/

    The only way I could figure out how to create a page background image was to use this css code:
    .site-container {
    background:url('http://www.gudlandscaping.com/wp-content/uploads/2014/11/1430363_170698405.jpg') no-repeat center top fixed #dddddd
    }
    .full-width-content .content {
    background-color: #ffffff;
    opacity: .85;
    margin-top: -40px;
    margin-bottom: 10px;
    padding:35px 045px;
    width:100%;
    }

    But that makes the same background image for all pages.

    I tried background plugins, but they didn't work.

    For the website I referred to above, they use the following css code to make different images on different pages:
    .page-id-1167 {
    -webkit-background-size:cover;
    background:url(http://www.surroundslandscaping.com/wp-content/themes/parallax-pro/images/page-bg-7.jpg) 50% 50% / cover no-repeat fixed;
    }
    .page-id-37, .page-id-46, .page-id-52, .page-id-87, .page-id-90, .page-id-583, .page-id-621 {
    background:url(http://www.surroundslandscaping.com/wp-content/themes/parallax-pro/images/page-bg.jpg) 50% 50% / cover no-repeat fixed;
    }
    .page-id-213, .page-id-860, .page-id-847, .page-id-872, .page-id-223, .page-id-226, .page-id-246 {
    -webkit-background-size:cover;
    background:url(http://www.surroundslandscaping.com/wp-content/themes/parallax-pro/images/page-bg-2.jpg) 50% 0 / cover no-repeat fixed;
    }

    And I found this html code they used:
    <body class="page page-id-90 page-template-default custom-header header-image full-width-content" itemscope="itemscope" itemtype="http://schema.org/WebPage" data-pinterest-extension-installed="cr1.35" cz-shortcut-listen="true">
    <div class="site-container">

    I know how to figure out what my page id is, and how to add the custom css, but how do I connect the page-id's? Do I need to do something in the function.php file?

    Thanks for your help!

    http://gudlandscaping.com/access
    November 12, 2014 at 11:40 am #131316
    emasai
    Participant

    There are 2 ways to do this:
    1 - Use the page-id number as in your example. To find that look in the source code at the top of each of your pages and it will tell you the page-id-#

    2 - Give each page a different body class. To add a body class on each page go to Layout Settings underneath the text editor box and enter a body class for each page. If the layout settings are not visible go to the Screen Options tab at the top right and check Layout Settings.

    Style just as they have done by either using the page-id or the body class .whatever
    .page-id-28 .site-container{
    etc
    OR
    body.mypage .site-container{


    Need Website Customization or a Responsive CSS fix? Contact Me
    Lynne emasai.com

    November 12, 2014 at 11:55 am #131318
    cindyjw
    Member

    Thank you so much! That was easy and it worked!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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