Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
Created May 12, 2015 13:29
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/a9638ffbbaa41f9d3c55 to your computer and use it in GitHub Desktop.
Save reasonstousegenesis/a9638ffbbaa41f9d3c55 to your computer and use it in GitHub Desktop.
Insert extra content directly after the entry content
<?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>';
}
<?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