Created
January 8, 2014 06:11
-
-
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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* 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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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