• 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

Primary sidebar below new homepage widget area in balance theme

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 › Primary sidebar below new homepage widget area in balance theme

This topic is: not resolved

Tagged: balance theme

  • This topic has 1 reply, 1 voice, and was last updated 13 years, 4 months ago by Bill.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • February 25, 2013 at 6:00 pm #22797
    Bill
    Participant

    I created a homepage bottom widget area for the balance theme for more flexibility rather than using the grid loop.   Having trouble though adn need some help.  My primary sidebar is displaying on right side as it should, however it's below the homepage bottom widget area on the homepage.
    website 

    Here is the home.php:

    <?php

    add_action( 'genesis_meta', 'balance_home_genesis_meta' );
    /**
    * Add widget support for homepage.
    *
    */
    function balance_home_genesis_meta() {

    if ( is_active_sidebar( 'home-featured-left' ) || is_active_sidebar( 'home-featured-right' ) || is_active_sidebar( 'home-featured-bottom' )) {

    add_action( 'genesis_after_header', 'balance_home_loop_helper' );
    add_action( 'genesis_after_header', 'bills_balance_home_loop_helper' ); /*I added */

    }
    }

    /**
    * Display widget content for home featured sections.
    *
    */
    function balance_home_loop_helper() {

    if ( is_active_sidebar( 'home-featured-left' ) || is_active_sidebar( 'home-featured-right' )) {

    echo '';

    echo '';
    dynamic_sidebar( 'home-featured-left' );
    echo '';

    echo '';
    dynamic_sidebar( 'home-featured-right' );
    echo '';

    echo '';

    }
    }

    function bills_balance_home_loop_helper() { /*I added */

    if ( is_active_sidebar( 'home-featured-bottom' )) {

    echo '';

    echo ''; /*I added this widget area*/
    dynamic_sidebar( 'home-featured-bottom' );
    echo '';

    echo '';
    }
    }

    remove_action( 'genesis_loop', 'genesis_do_loop' );
    genesis();

    February 25, 2013 at 7:23 pm #22814
    Bill
    Participant

    ooops, never mind. I was using the wrong hook. Feel free to close the thread.
    Thanks

  • 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