• 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

Home.php page id

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 › Home.php page id

This topic is: resolved
  • This topic has 3 replies, 2 voices, and was last updated 12 years ago by David Chu.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • May 7, 2013 at 8:30 am #39704
    SaraGraybill
    Member

    I am working on this site: http://www.cobbengr.com/civilservants/ and I am trying to get rid of the grey borders alongside the middle white widget areas.  They are there because I added those to the content-sidebar wrap on the inside pages but I don't want them applied to the home page.  I know you can target a specific page by finding the page ids in WordPress but is there even an id to target the home page?  I have it set up through a home.php file.


    Graybill Creative | Twitter

    http://www.cobbengr.com/civilservants/
    May 7, 2013 at 8:59 am #39713
    David Chu
    Participant

    Hi,
    Good question. Your approach would definitely work, but only if you have a static homepage,,, the home.php is generally designed for showing current Posts, or at least just for the big honking landing style page that we all like these days. 🙂

    Fortunately, you have a handy "home" class on BODY (take a look at the HTML). I have a bit of code for you that can go into style.css. Notice how it uses the "home" class to target just the homepage. It should take those off for you.

    .home #content-sidebar-wrap {
      border-left: 0;
      border-right: 0;
    }
    

    Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    May 7, 2013 at 9:03 am #39714
    SaraGraybill
    Member

    That solved it, thanks you so much for your help!


    Graybill Creative | Twitter

    May 7, 2013 at 9:33 am #39721
    David Chu
    Participant

    Great!! Just double-check your other pages, but you should be all set.

    Cheers, Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

  • 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

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