Support › Forums › Flex Theme › Adding a full width section before pre-footer › Reply To: Adding a full width section before pre-footer
July 22, 2016 at 3:13 am
#1134
Moderator
Add this code in your functions.php file
add_action('genesis_before_footer', 'gd_pre_pre_footer', 3 );
function gd_pre_pre_footer() {
if (is_page("Water") )
return;
if( is_active_sidebar('pre-pre-footer') ):
genesis_widget_area( 'pre-pre-footer', array(
'before' => '<div class="pre-pre-footer" id="pre-pre-footer">',
'after' => '</div>',
) );
endif;
}
I am using “genesis_before_footer” hook and set the priority 3. It will add the new widget area above the footer widget areas if have any.