• 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

Registering Sidebar (enterprise)

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 › Registering Sidebar (enterprise)

This topic is: not 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 12:29 pm #17385
    Joseph Lee
    Member

    This is the code from Enterprise that registers sidebars (that comes with theme)

    genesis_register_sidebar( array(
    'id' => 'home-bottom-1',
    'name' => __( 'Home Bottom #1', 'enterprise' ),
    'description' => __( 'This is home bottom #1 section.', 'enterprise' ),
    ) );

    What is the 'enterprise' in the name for? What does this do? I am installing a sidebar with the following code:

    genesis_register_sidebar( array(
    'id' => 'rets-sidebar',
    'name' => 'Rets',
    'description' => 'This is the bottom left column in the sidebar.',
    ) );

    This code is normal. It doesn't have the 'enterprise' in the name. Do I have to put it in there to work with the child theme enterprise?

    What does 'enterprise' do?

    February 2, 2013 at 12:42 pm #17388
    Joseph Lee
    Member

    add_action( 'get_header', 'child_sidebar_logic' );

    /**

     * Remove Lifestyle bottom sidebars, and swap in a different sidebar instead of

     * the default sidebar.

     *

     * @author Jennifer Baumann

     * @link http://dreamwhisperdesigns.com/?p=1034

     */

    function child_sidebar_logic() {

        if ( is_page_template( 'page_blog.php' ) || is_archive() || is_single() ) {

            remove_action('genesis_after_sidebar_widget_area', 'lifestyle_include_bottom_sidebars');

            remove_action( 'genesis_after_content', 'genesis_get_sidebar' );

            add_action( 'genesis_after_content', 'child_get_blog_sidebar' );

        }

    }

    /**

     * Retrieve blog sidebar

     */

    function child_get_blog_sidebar() {

        get_sidebar( 'blog' );

    }

     

    I don't understand why I have to add an action to get the header either. Doesn't the header come into the custom page template when I use Genesis()

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘General Discussion’ 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