Skip to content

Instantly share code, notes, and snippets.

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

This comment has been minimized.

Copy link

commented Nov 23, 2017

Yeah . Thank very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.