Created
September 22, 2015 04:11
-
-
Save reasonstousegenesis/84e51a53f9570fb36a3d to your computer and use it in GitHub Desktop.
Add content between the Post title and byline
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. | |
/** | |
* Add content between the Post title and byline | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/genesis-entry-header/ | |
*/ | |
add_action( 'genesis_entry_header', 'rtug_entry_header' ); | |
function rtug_entry_header() { | |
echo '<p>A piece of extra content between the title and byline</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. | |
/** | |
* Add content between the Post title and byline (XHTML) | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/genesis-entry-header/ | |
*/ | |
add_action( 'genesis_post_title', 'rtug_entry_header' ); | |
function rtug_entry_header() { | |
echo '<p>A piece of extra content between the title and byline</p>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment