• 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

Possible To Change Sidebar Background Color? (Metro)

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 › Possible To Change Sidebar Background Color? (Metro)

This topic is: not resolved

Tagged: http://demo.graphicallydesigning.com/test-post-one-2/

  • This topic has 12 replies, 3 voices, and was last updated 12 years, 6 months ago by Susan.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • August 28, 2013 at 7:03 am #59197
    cdevivo1
    Member

    Hey everyone,

    I've done a lot of minor customizations on Studio Press themes and generally don't have a problem. A question I wondered about and haven't been able to figure out: is there a way to change the background color of the sidebar area? For example, if I still wanted my inner/wrap/main content to be over white, but wanted the sidebar to be blazing pink (no, not really)?

    I've gone through a lot of the css, made lots of changes but nothing works. When I change what's behind the body I change the whole thing.

    Is this possible? If so does anyone have any suggestions/resources that I can look towards?

    Thanks,

    August 29, 2013 at 12:58 am #59459
    Sridhar Katakam
    Participant

    Like this? -> http://i.imgur.com/Ut4RTZL.jpg

    If so,

    .sidebar {
        background: pink;
        padding: 0.5rem;
    }

    will work.

    or, do you want the sidebar background to stretch vertically till the end of content area?


    Genesis Tutorials | Follow me on Twitter

    August 29, 2013 at 3:24 am #59480
    cdevivo1
    Member

    Never thought of adding that simple line. I was going crazy trying to modify what was already in there, thank you.

    I had tried to use a 1 pixel high background image that scrolled vertical, but it kept showing up in my posts as well.

    This works great, but Is there a way to stretch it to end of content area?

    Thanks so much. Sometimes it's the easiest things that I can't see right in front of my face

    August 29, 2013 at 3:39 am #59483
    Sridhar Katakam
    Participant

    Instead of the above CSS,

    #content-sidebar-wrap {
        background: pink;
    }
    
    .metro-home #content {
        padding-right: 1rem;
        background: #FFFFFF;
    }
    
    .sidebar {
        padding-right: 1rem;
    }

    to get http://i.imgur.com/eJd2RBV.jpg

    I had tried to use a 1 pixel high background image that scrolled vertical, but it kept showing up in my posts as well.

    That would work and in fact is more robust than the above method. You can prefix the CSS selector(s) with .home to restrict things to just the homepage.


    Genesis Tutorials | Follow me on Twitter

    August 29, 2013 at 5:13 am #59493
    Susan
    Moderator

    Sridhar:

    I've been looking for the same answer myself for a client's site - I added in the second CSS that you created, but it changed both the content area and the primary sidebar.

    http://ow.ly/onfQP

    August 29, 2013 at 5:25 am #59496
    Sridhar Katakam
    Participant

    Susan,

    For your site, you need to change

    .metro-home #content

    to

    .home #content


    Genesis Tutorials | Follow me on Twitter

    August 29, 2013 at 5:29 am #59497
    Susan
    Moderator

    Sridhar:

    You are a genius. Thanks 🙂

    August 29, 2013 at 5:31 am #59498
    Sridhar Katakam
    Participant

    haha, not really.

    This is known as Faux columns technique.

    See http://alistapart.com/article/fauxcolumns. It's way back from 2004.

    The other two methods are vertically repeating image background for the content and using jQuery. If you are interested, I can give you articles I wrote on them albeit for another theme framework. Principles remain the same though.


    Genesis Tutorials | Follow me on Twitter

    August 29, 2013 at 5:35 am #59499
    Susan
    Moderator

    That would be good - I'm always looking to increase my knowledge base!

    August 29, 2013 at 5:36 am #59500
    Sridhar Katakam
    Participant

    http://ithemes.com/codex/page/Builder_Tips_and_Tricks#How_to_extend_sidebar_and.2For_content_background_so_they_reach_till_the_bottom

    http://sridharkatakam.com/how-to-set-equal-height-for-content-modules-element-and-sidebar-in-ithemes-builder/


    Genesis Tutorials | Follow me on Twitter

    August 31, 2013 at 12:28 am #59846
    Susan
    Moderator

    Sridhar:

    As a follow-up - I added the code to my site, and on the home page, the sidebar appears the desired color on a white content area, but on a post page, the color extends across the entire content area. I'm not sure where I've messed up...

    http://demo.graphicallydesigning.com/test-post-one-2/

    August 31, 2013 at 12:33 am #59848
    Sridhar Katakam
    Participant

    Change

    .home #content {
        padding-right: 1rem;
        background: #FFFFFF;
    }

    to

    #content {
        padding-right: 1rem;
        background: #FFFFFF;
    }

    Genesis Tutorials | Follow me on Twitter

    August 31, 2013 at 12:45 am #59850
    Susan
    Moderator

    That did it 😉 - Thanks!

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