Homepage › Community Forums › Adapt Theme Support › home feature wrap all pages › Reply To: home feature wrap all pages
You can add something like this in your functions.php file, and adjust where you want it to show –
add_action('genesis_before_footer', 'adapt_home_loop_helper_middle2');
function adapt_home_loop_helper_middle2() {
echo '<div class="home-feature-wrap">';
if ( is_active_sidebar( 'home-feature-1' ) ) {
echo '<div class="home-feature-1">';
dynamic_sidebar( 'home-feature-1' );
echo '</div><!-- end .home-feature-1 -->';
}
if ( is_active_sidebar( 'home-feature-2' ) ) {
echo '<div class="home-feature-2">';
dynamic_sidebar( 'home-feature-2' );
echo '</div><!-- end .home-feature-2 -->';
}
if ( is_active_sidebar( 'home-feature-3' ) ) {
echo '<div class="home-feature-3">';
dynamic_sidebar( 'home-feature-3' );
echo '</div><!-- end .home-feature-3 -->';
}
if ( is_active_sidebar( 'home-feature-4' ) ) {
echo '<div class="home-feature-4">';
dynamic_sidebar( 'home-feature-4' );
echo '</div><!-- end .home-feature-4 -->';
}
echo '</div><!-- end #home-feature-wrap -->';
}