Created
December 3, 2019 01:19
-
-
Save topleague/133b488f98dc097787d461354f828507 to your computer and use it in GitHub Desktop.
Reposition Post Info Conditionally in Genesis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* 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