Created
December 28, 2012 17:54
-
-
Save anonymous/4400256 to your computer and use it in GitHub Desktop.
Genesis Outreach theme - only show subfooter on home page.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Add the sub footer section */ | |
add_action( 'genesis_before_footer', 'outreach_sub_footer', 5 ); | |
function outreach_sub_footer() { | |
if ( is_front_page() { | |
if ( is_active_sidebar( 'sub-footer-left' ) || is_active_sidebar( 'sub-footer-right' ) ) { | |
echo '<div id="sub-footer"><div class="wrap">'; | |
genesis_widget_area( 'sub-footer-left', array( | |
'before' => '<div class="sub-footer-left">' | |
) ); | |
genesis_widget_area( 'sub-footer-right', array( | |
'before' => '<div class="sub-footer-right">' | |
) ); | |
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