Skip to content

Instantly share code, notes, and snippets.

@KnowTheCodePro
Last active May 19, 2016 18:34
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 KnowTheCodePro/b1e13fe1d5667b35274130202ca3e64e to your computer and use it in GitHub Desktop.
Save KnowTheCodePro/b1e13fe1d5667b35274130202ca3e64e to your computer and use it in GitHub Desktop.
Problem Solving Lab - Repositioning Post Info doesn't work on the first post. Why?
add_action( 'genesis_entry_header', 'reposition_post_info_above_entry_title', 1 );
/**
* Reposition the post info above the entry title.
*
* @since 1.0.0
*
* @return void
*/
function reposition_post_info_above_entry_title() {
if ( ! is_front_page() && ! is_home() && ! is_archive() ) {
return;
}
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
add_action( 'genesis_entry_header', 'genesis_post_info', 7 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment