• 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

Extending Background Colour of Sidebar Dynamically – Genesis Sample

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 › Extending Background Colour of Sidebar Dynamically – Genesis Sample

This topic is: not resolved

Tagged: sidebar color extended

  • This topic has 5 replies, 2 voices, and was last updated 11 years, 6 months ago by LaunchPad777.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • October 21, 2014 at 3:11 am #128596
    LaunchPad777
    Member

    Hello there,

    I need to find out how to get the background colour of the sidebar to extend to the bottom of the page in line with the main content section (irrespective of how long or short the content section is).

    At the moment, the background colour of the site shows at the bottom of the sidebar (black).

    Your help is appreciated.

    Best regards
    Greg

    http://www.gpmotorworks.co.za
    October 21, 2014 at 3:36 am #128598
    gvanaart
    Member

    Hi,

    are you familiar with CSS?

    Put in your sidebar, I don't know your theme so check the right class or ID, the following code:

    padding-bottom: 5000px;
    margin-bottom: -5000px;

    Now the height of your sidebar equals your content field.

    October 22, 2014 at 5:32 am #128736
    LaunchPad777
    Member

    Hi gvanaart,

    Thanks.....am using the Genesis Sample Theme on this website....

    Is the number 5000 px a random number?

    Using Inspect Element this looks like it could be the right bit of code to change?

    .sidebar .widget {
    background-color: #969697;
    border-radius: none;
    margin-bottom: 4rem;
    padding: 4rem;
    }

    The question is that those values (4rem) affect more than just the bottom of the sidebar.
    So what should be changed to keep the existing values and only change the bottom values for the padding and margin?

    Regards
    Greg

    What

    October 23, 2014 at 2:35 am #128827
    LaunchPad777
    Member

    Anyone have any input here?

    Thanks
    Regards

    Greg

    October 27, 2014 at 7:50 am #129433
    LaunchPad777
    Member

    Hello there,

    I searched the forum and found this thread which had a similar problem:

    The code used was:

    #sidebar {
    	background-color: #EFEFEF;
    	width: 25%;
    	overflow: hidden;
    	margin-bottom: -99999px;
    	padding-bottom: 99999px;
    	position:relative;
    	z-index:2; // in front of content
    	}
    
    #footer-widgets .wrap {
    	font-size: 13px;
    	line-height: 20px;
    	text-align: center;
    	border: 0;
    	padding: 0;
    	background-color: #76666E;
    	max-height: 20px;
    	position:relative;
    	z-index:9; // on top
    }

    Please can someone shed light on the "position" and "z-index" parameters....particularly the "z-index" one.

    Where do you get those values?

    The thread mentioning this is - http://www.studiopress.community/topic/sidebar-background-color-full-height/

    Appreciate your help!!!

    Regards
    Greg

    October 29, 2014 at 9:03 am #129741
    LaunchPad777
    Member

    Any ideas on how to do this properly?

    On another thread I was told that the idea of extending like this is not good:
    padding-bottom: 5000px;
    margin-bottom: -5000px;

    What is the right way to achieve this???

    Please help...

    Regards
    Greg

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