Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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