Skip to content

Instantly share code, notes, and snippets.

@srikat
Created January 8, 2014 06:11
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save srikat/8312556 to your computer and use it in GitHub Desktop.
Save srikat/8312556 to your computer and use it in GitHub Desktop.
Moving Post Categories from Entry Meta to above Post Title in Genesis. http://sridharkatakam.com/moving-post-categories-entry-meta-post-title-genesis/
//* Add Post categories above Post title on single Posts
add_action ( 'genesis_entry_header', 'sk_show_category_name', 9 );
function sk_show_category_name() {
if ( ! is_singular('post') )
return;
echo do_shortcode('[post_categories before="Filed Under: "]');
}
//* Show only Post tags in entry meta for single Posts
add_filter( 'genesis_post_meta', 'sk_post_meta_filter' );
function sk_post_meta_filter($post_meta) {
if ( is_singular('post') ) :
$post_meta = '[post_tags]';
else :
endif;
return $post_meta;
}
.entry-header .entry-categories {
margin-bottom: 2rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment