This file contains hidden or 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
//* Add Excerpt support to Pages in Genesis | |
add_post_type_support( 'page', 'excerpt' ); |
This file contains hidden or 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
//* Display Excerpt as Page Subtitle in Genesis | |
add_action( 'genesis_entry_header', 'leaguewp_page_subtitle', 10 ); | |
function leaguewp_page_subtitle() { | |
if ( is_singular( 'page' ) && has_excerpt() ) { | |
printf( '<p class="excerpts">%s</p>', get_the_excerpt() ); | |
} | |
} |
This file contains hidden or 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
//* Display Excerpt as Post Subtitle in Genesis | |
add_action( 'genesis_entry_content', 'leaguewp_post_subtitle', 9 ); | |
function leaguewp_post_subtitle() { | |
if ( is_singular( 'post' ) && has_excerpt() ) { | |
printf( '<p class="excerpts">%s</p>', get_the_excerpt() ); | |
} | |
} |
This file contains hidden or 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
// Move Entry Header to a Full-width Hook | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 ); | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 ); | |
add_action( 'genesis_after_header', 'genesis_entry_header_markup_open', 5 ); | |
add_action( 'genesis_after_header', 'genesis_do_post_title' ); | |
add_action( 'genesis_after_header', 'genesis_post_info' ); | |
add_action( 'genesis_after_header', 'genesis_entry_header_markup_close', 15 ); |