• 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

Frederika

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • March 19, 2013 at 8:36 pm in reply to: Adding 3 widgetized featured pages {prose theme} #29572
    Frederika
    Member

    Well I figured out the custom code for the 3 side by side widgets by borrowing and adjusting from the agency theme.

    I'm now not sure how to get it only on the homepage. Right now the 3 widgets are on every page of the site.

    // Register widget
    
    genesis_register_sidebar( array(
     'id' => 'home-left',
     'name' => __( 'Home Left', 'prose' ),
     'description' => __( 'This is the left section of the homepage.', 'prose' ),
    ) );
    genesis_register_sidebar( array(
     'id' => 'home-middle',
     'name' => __( 'Home Middle', 'prose' ),
     'description' => __( 'This is the middle section of the homepage.', 'prose' ),
    ) );
    genesis_register_sidebar( array(
     'id' => 'home-right',
     'name' => __( 'Home Right', 'prose' ),
     'description' => __( 'This is the right section of the homepage.', 'prose' ),
    ) );
    
    add_action( 'genesis_before_content_sidebar_wrap', 'custom_before_content', 9 );
    /**
     * Add widget support for homepage. If no widgets active, display the default loop.
     *
     */
    function custom_before_content() {
    
    if ( is_home() && is_active_sidebar( 'home-left' ) || is_active_sidebar( 'home-middle' ) || is_active_sidebar( 'home-right' ) ) {
    
    echo '<div id="home">';
    
    echo '<div class="home-left">';
     dynamic_sidebar( 'home-left' );
     echo '</div><!-- end .home-left -->';
    
    echo '<div class="home-middle">';
     dynamic_sidebar( 'home-middle' );
     echo '</div><!-- end .home-middle -->';
    
    echo '<div class="home-right">';
     dynamic_sidebar( 'home-right' );
     echo '</div><!-- end .home-right -->';
    
    echo '</div><!-- end #home -->';
    
    }
    
    }
    
    March 19, 2013 at 1:55 pm in reply to: Adding 3 widgetized featured pages {prose theme} #29481
    Frederika
    Member

    oops http://nextlevelvision.com/dpm

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)

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