Skip to content

Instantly share code, notes, and snippets.

@brycejacobson
Forked from studiopress/customize.php
Created July 18, 2013 16:19
Show Gist options
  • Save brycejacobson/6030704 to your computer and use it in GitHub Desktop.
Save brycejacobson/6030704 to your computer and use it in GitHub Desktop.
WordPress Genesis Customization's
<?php
//* Do NOT include the opening php tag
//* Customize the entry meta in the entry header (requires HTML5 theme support)
add_filter( 'genesis_post_info', 'post_info_filter' );
function 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
//* Remove the entry meta in the entry header (requires HTML5 theme support)
remove_action( 'genesis_entry_header', 'genesis_post_info' );
<?php
//* Do NOT include the opening php tag
//* 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
//* 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
//* Remove the post format image (requires HTML5 theme support)
remove_action( 'genesis_entry_header', 'genesis_do_post_format_image', 5 );
<?php
//* Do NOT include the opening php tag
//* Remove the link from each post title
add_filter( 'genesis_post_title_output', 'product_post_title_output', 15 );
function product_post_title_output( $title ) {
$title = sprintf( '<h2 class="entry-title">%s</h2> ', apply_filters( 'genesis_post_title_text', get_the_title() ) );
return $title;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment