Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
Created September 22, 2015 04:11
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/84e51a53f9570fb36a3d to your computer and use it in GitHub Desktop.
Save reasonstousegenesis/84e51a53f9570fb36a3d to your computer and use it in GitHub Desktop.
Add content between the Post title and byline
<?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>';
}
<?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