Skip to content

Instantly share code, notes, and snippets.

@srikat
Last active December 16, 2020 01:48
Show Gist options
  • Save srikat/9508774 to your computer and use it in GitHub Desktop.
Save srikat/9508774 to your computer and use it in GitHub Desktop.
Moving Post Title and Post Info from Entry Header to Entry Content in Genesis. http://sridharkatakam.com/move-post-title-post-info-entry-header-entry-content-genesis/
//* Move Post Title and Post Info from inside Entry Header to Entry Content on Posts page
add_action( 'genesis_before_entry', 'reposition_entry_header' );
function reposition_entry_header() {
if ( is_home() ) {
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_entry_content', 'genesis_do_post_title', 9 );
add_action( 'genesis_entry_content', 'genesis_post_info', 9 );
}
}
.entry-content .entry-title a {
border-bottom: none;
color: #333;
}
.entry-content .entry-title a:hover {
color: #666;
}
.entry-content .entry-meta a {
color: #666;
}
.entry-content .entry-meta a:hover {
color: #333;
}
@pvphong90
Copy link

Yeah . Thank very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment