Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
Created October 16, 2015 05:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reasonstousegenesis/a7834cdd379193a88d0e to your computer and use it in GitHub Desktop.
Save reasonstousegenesis/a7834cdd379193a88d0e to your computer and use it in GitHub Desktop.
Replace the loop with Genesis
<?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