Created
October 28, 2012 15:23
-
-
Save WebEndevSnippets/3968893 to your computer and use it in GitHub Desktop.
Genesis: Add a Sub Footer Section
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', 'webendev_sub_footer', 5 ); | |
function webendev_sub_footer() { | |
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