Created
October 16, 2015 05:08
-
-
Save reasonstousegenesis/a7834cdd379193a88d0e to your computer and use it in GitHub Desktop.
Replace the loop with 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 | |
// Paste the code BELOW this line into your child theme functions. | |
/** | |
* Replace the loop with Genesis | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/genesis-loop/ | |
*/ | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
add_action( 'genesis_loop', 'rtug_replace_loop' ); | |
function rtug_replace_loop() { | |
echo '<p><strong>A piece of replacement content instead of the loop</strong></p>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment