Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
Created September 22, 2015 04:10
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/1ea0bb65a2aa83a60791 to your computer and use it in GitHub Desktop.
Save reasonstousegenesis/1ea0bb65a2aa83a60791 to your computer and use it in GitHub Desktop.
Add content directly above the Post or Page title
<?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>';
}
<?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