Last active
December 18, 2015 22:49
-
-
Save jeherve/5857435 to your computer and use it in GitHub Desktop.
Add an additional wrapper around your posts in the Genesis framework
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
<?php | |
//* Do NOT include the opening php tag | |
add_action( 'genesis_before_loop', 'jh_open_wrapper' ); | |
add_action( 'genesis_after_loop', 'jh_close_wrapper' ); | |
function jh_open_wrapper() { ?> | |
<div id="jh_posts"> | |
<?php } | |
function jh_close_wrapper() { ?> | |
</div><!-- /#jh_posts --> | |
<?php } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment