• 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

Custom class for home page div

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 › Custom class for home page div

This topic is: resolved

Tagged: css, custom home page div, Sidebar

  • This topic has 3 replies, 2 voices, and was last updated 13 years, 2 months ago by rfmeier.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • June 10, 2013 at 12:03 pm #45081
    danieray
    Member

    If there is a better way to approach this, please let me know, but this is what I'm trying to figure out:

    I have a sidebar with a repeating background image that I want the height to be the same as the content area of each page. I am able to achieve this if I add the bg image to the div #content-sidebar-wrap, but then the image shows up on the home page which I don't want. Can I add a class to the home page div so I can remove the background image?

    If I add the background image to the sidebar it doesn't show up on the home page, but it no longer has the same height of the content area.

    What's the best (easiest) way for me to get this working correctly on every page except the home page? Thanks!

    http://bmt.diedrick.net
    June 10, 2013 at 12:10 pm #45084
    rfmeier
    Member

    Hello.

    You can set the background image to none on the home page. Try this

    /* line ~645 */
    .home #content-sidebar-wrap {
        background-image: none;
    }

    Make sure this is below the #content-sidebar-wrap declaration so it can override.

    I hope this helps.


    Ryan Meier – Twitter

    June 10, 2013 at 12:15 pm #45086
    danieray
    Member

    That did it! I thought I tried that, but probably didn't have it UNDER the #content-sidebar-wrap. Thanks so much!

    June 10, 2013 at 12:15 pm #45087
    rfmeier
    Member

    You are welcome. I am glad I could help.


    Ryan Meier – Twitter

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