• 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

Add custom background color sides Modern Portfolio Pro

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 › Add custom background color sides Modern Portfolio Pro

This topic is: resolved

Tagged: body color, custom background, Modern Portfolio Pro, sides

  • This topic has 4 replies, 2 voices, and was last updated 8 years, 7 months ago by evert.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • August 10, 2014 at 8:02 am #118047
    evert
    Member

    Hi everyone,

    I'm working on this site http://youngexperts.nl/ and I want to add 'custom background color sides' in the Modern Portfolio Pro theme. For any visual on how I'd like to have it, visit this page http://anker-kompas.nl/. I'd like to add the colored sides on the outer side of the page, next to the white color (body color).

    I know it has something to do with this snippet of code:

    body.custom-background {
    background-color: #e0dcd7;
    }

    But when I change the body color in mij style.css file the whole page is turned over in that color, I want just the sides colored.

    Cheers!

    http://youngexperts.nl/
    August 15, 2014 at 12:08 am #118914
    Tom
    Participant

    At line 165 in your stylesheet you would change this to specify your color:

    body {
    background-color: #e0dcd7;
    }

    Unfortunately, your theme is not designed to support a custom or color background. This is why the entire page assumes the color specified. To make the background of the other body and widget areas not show this color you would start by targeting each area separately such as:

    .site-inner {
    background-color: #fff;
    }

    Then you will find that many elements will require adjustments to padding and/or margins. Some areas will require more changes. You would have to measure the effort against potentially picking up a different theme that is prepped for a custom background that suits.


    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

    August 15, 2014 at 4:03 pm #119126
    evert
    Member

    Thanks Tom, it worked! Great tip!

    Cheers!

    August 15, 2014 at 7:39 pm #119160
    Tom
    Participant

    Super! Can you please mark this thread resolved?


    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

    August 16, 2014 at 2:21 pm #119249
    evert
    Member
    This reply has been marked as private.
  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 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

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