Skip to content

Instantly share code, notes, and snippets.

@hirejordansmith

hirejordansmith/functions.php Secret

Last active Mar 11, 2017
Embed
What would you like to do?
How to Move the Genesis Entry Header
<?php
//* Remove the entry header markup and entry title (requires HTML5 theme support)
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_entry_header_markup_close', 15 );
//* Move Entry Header before the content sidebar wrap
add_action( 'genesis_before_content_sidebar_wrap', 'hjs_output_entry_header' );
function hjs_output_entry_header() {
if (is_front_page()) {
return;
}
genesis_entry_header_markup_open();
genesis_do_post_title();
genesis_entry_header_markup_close();
}
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.