Skip to content

Instantly share code, notes, and snippets.

@topleague
Created December 3, 2019 01:19
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 topleague/133b488f98dc097787d461354f828507 to your computer and use it in GitHub Desktop.
Save topleague/133b488f98dc097787d461354f828507 to your computer and use it in GitHub Desktop.
Reposition Post Info Conditionally in Genesis
//* Re-position Post Info Condtionally
add_action( 'genesis_entry_header', 'conditional_reposition' );
function conditional_reposition() {
if ( is_front_page() || is_archive() ) :
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
add_action( 'genesis_entry_footer', 'genesis_post_info', 10 );
elseif (is_single()) :
return $post_info;
endif;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment