Skip to content

Instantly share code, notes, and snippets.

@studiopress
Last active October 29, 2018 14:37
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save studiopress/5722394 to your computer and use it in GitHub Desktop.
Save studiopress/5722394 to your computer and use it in GitHub Desktop.
Genesis entry header.
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Customize the entry meta in the entry header (requires HTML5 theme support)
add_filter( 'genesis_post_info', 'sp_post_info_filter' );
function sp_post_info_filter($post_info) {
$post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]';
return $post_info;
}
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Remove the entry meta in the entry header (requires HTML5 theme support)
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Remove the entry title (requires HTML5 theme support)
remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Remove the entry header markup (requires HTML5 theme support)
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 );
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Remove the post format image (requires HTML5 theme support)
remove_action( 'genesis_entry_header', 'genesis_do_post_format_image', 4 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment