Outreach Pro - Display Sub-Footer Left and Sub-Footer Right Home Page only
//* Add the sub footer section | |
add_action( 'genesis_before_footer', 'outreach_sub_footer', 5 ); | |
function outreach_sub_footer() { | |
if ( is_active_sidebar( 'sub-footer-left' ) || is_active_sidebar( 'sub-footer-right' ) ) { | |
echo '<div class="sub-footer"><div class="wrap">'; | |
genesis_widget_area( 'sub-footer-left', array( | |
'before' => '<div class="sub-footer-left">', | |
'after' => '</div>', | |
) ); | |
genesis_widget_area( 'sub-footer-right', array( | |
'before' => '<div class="sub-footer-right">', | |
'after' => '</div>', | |
) ); | |
echo '</div><!-- end .wrap --></div><!-- end .sub-footer -->'; | |
} | |
} |
//* Add the sub footer section | |
add_action( 'genesis_before_footer', 'outreach_sub_footer', 5 ); | |
function outreach_sub_footer() { | |
if ( ! is_home() ) { | |
return; | |
} | |
if ( is_active_sidebar( 'sub-footer-left' ) || is_active_sidebar( 'sub-footer-right' ) ) { | |
echo '<div class="sub-footer"><div class="wrap">'; | |
genesis_widget_area( 'sub-footer-left', array( | |
'before' => '<div class="sub-footer-left">', | |
'after' => '</div>', | |
) ); | |
genesis_widget_area( 'sub-footer-right', array( | |
'before' => '<div class="sub-footer-right">', | |
'after' => '</div>', | |
) ); | |
echo '</div><!-- end .wrap --></div><!-- end .sub-footer -->'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment