Last active
August 29, 2015 14:08
-
-
Save jchristopher/945ce9088423c9679b49 to your computer and use it in GitHub Desktop.
Set up a custom wrapper div for facetwp-template in Genesis
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 | |
// open the FacetWP Template wrapper | |
function be_open_facetwp_template_wrapper() { | |
echo '<div class="facetwp-template">'; | |
} | |
add_action( 'genesis_before_loop', 'be_open_facetwp_template_wrapper', 9999 ); | |
// close the FacetWP Template wrapper | |
function be_close_facetwp_template_wrapper() { | |
echo '</div> <!-- /.facetwp-template -->'; | |
} | |
add_action( 'genesis_after_loop', 'be_close_facetwp_template_wrapper' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment