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