Created
May 18, 2015 10:06
-
-
Save reasonstousegenesis/6a387e0960baa0106aa4 to your computer and use it in GitHub Desktop.
Insert content after the entry 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. | |
/** | |
* Insert content after the entry with Genesis (HTML5) | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/genesis-after-entry/ | |
*/ | |
add_action( 'genesis_after_entry', 'rtug_after_entry' ); | |
function rtug_after_entry() { | |
echo '<p><strong>A piece of extra content after the entry</strong></p>'; | |
} |
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. | |
/** | |
* Insert content after the entry with Genesis (XHTML) | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/genesis-after-entry/ | |
*/ | |
add_action( 'genesis_after_post', 'rtug_after_entry' ); | |
function rtug_after_entry() { | |
echo '<p><strong>A piece of extra content after the entry</strong></p>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment