Created
May 12, 2015 13:29
-
-
Save reasonstousegenesis/a9638ffbbaa41f9d3c55 to your computer and use it in GitHub Desktop.
Insert extra content directly after the entry content
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 extra content directly after the entry content | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/genesis-entry-content/ | |
*/ | |
add_action( 'genesis_entry_content', 'rtug_after_entry_content' ); | |
function rtug_after_entry_content() { | |
echo '<p><strong>An extra line of text after the entry content</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 extra content directly after the entry content (XHTML) | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/genesis-entry-content/ | |
*/ | |
add_action( 'genesis_post_content', 'rtug_after_entry_content' ); | |
function rtug_after_entry_content() { | |
echo '<p><strong>An extra line of text after the entry content</strong></p>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment