Skip to content

Instantly share code, notes, and snippets.

@braddalton
Last active January 3, 2016 01:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save braddalton/c589bc2b43ffc2184421 to your computer and use it in GitHub Desktop.
Save braddalton/c589bc2b43ffc2184421 to your computer and use it in GitHub Desktop.
//* Add the sub footer section
add_action( 'genesis_before_footer', 'outreach_sub_footer', 5 );
function outreach_sub_footer() {
if ( !is_page( array ( 822, 43, 1044 ) ) ) {
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