• 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

Homepage.php

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 › General Discussion › Homepage.php

This topic is: resolved
  • This topic has 1 reply, 1 voice, and was last updated 13 years, 3 months ago by Joseph Lee.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • February 2, 2013 at 7:05 am #17331
    Joseph Lee
    Member

    I am learning Genesis.

    Many of the themes have a homepage.php. There they call sidebars with simple php. There is no need for a sidebar-x.php because the homepage is not replacing a sidebar, so you don't need a filter/add action, right?

    However, there is nothing in the homepage.php to stop the normal sidebar from showing up on the page. The primary sidebar does not show up though. Shouldn't  "genesis()" bring in the primary (and secondary depending on layout) of the site?

    February 2, 2013 at 7:10 am #17332
    Joseph Lee
    Member

    function enterprise_home_genesis_meta() {

    if ( is_active_sidebar( 'home-middle-1' ) || is_active_sidebar( 'home-middle-2' ) || is_active_sidebar( 'home-middle-3' ) ) {

    remove_action( 'genesis_loop', 'genesis_do_loop' );
    add_action( 'genesis_loop', 'enterprise_home_loop_helper' );
    add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );

    }
    }

     

    This is in my code. I am guessing the bold code is forcing the home page in to a no primary/secondary sidebar.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Homepage.php’ is closed to new 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