Forum Replies Created
-
AuthorPosts
-
brook1979Member
Hi Brad,
Thanks for taking the time to help, much appreciated. Here's what I have done up to now. I was going to try and explain what ive done, BUT ive messed with it that much Im getting confused....SO heres what ive done in the code.
Registered the new featured areas:
genesis_register_sidebar( array(
'id' => 'case-featured-left',
'name' => __( 'Case Featured Left', 'balance' ),
'description' => __( 'This is the featured left area for case studies.', 'balance' ),
) );genesis_register_sidebar( array(
'id' => 'case-featured-right',
'name' => __( 'Case Featured Right', 'balance' ),
'description' => __( 'This is the featured right area for case studies.', 'balance' ),
) );Then on the home page (I know they shouldnt be on the home.php, BUT im not clear on where to add them).
function balance_home_loop_helper() {
if ( is_active_sidebar( 'home-featured-left' ) || is_active_sidebar( 'home-featured-right' ) ) {
echo '<div id="home-featured"><div class="wrap clearfix">';
echo '<div class="home-featured-left">';
dynamic_sidebar( 'home-featured-left' );
echo '</div><!-- end .home-featured-left -->';echo '<div class="home-featured-right">';
dynamic_sidebar( 'home-featured-right' );
echo '</div><!-- end .home-featured-right -->';echo '</div><!-- end .wrap --></div><!-- end #home-featured -->';
echo '<div id="case-featured"><div class="wrap clearfix">';
echo '<div class="case-featured-left">';
dynamic_sidebar( 'case-featured-left' );
echo '</div><!-- end .case-featured-left -->';echo '<div class="case-featured-right">';
dynamic_sidebar( 'case-featured-right' );
echo '</div><!-- end .case-featured-right -->';echo '</div><!-- end .wrap --></div><!-- end #case-featured -->';
}
}
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'child_grid_loop_helper' );Can you point me in the right direction from here?
Your assistance is much appreciated.
Carl
-
AuthorPosts