Primary sidebar below new homepage widget area in balance theme

Community Forums Forums General Discussion Primary sidebar below new homepage widget area in balance theme

This topic is: not resolved

Tagged: 

This topic contains 1 reply, has 1 voice, and was last updated by  billmcq 1 year, 7 months ago.

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

    billmcq
    Participant
    Post count: 29

    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();

    #22814

    billmcq
    Participant
    Post count: 29

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

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.