Skip to content

Instantly share code, notes, and snippets.

@ramseyp
Created December 22, 2012 03:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ramseyp/4357296 to your computer and use it in GitHub Desktop.
Save ramseyp/4357296 to your computer and use it in GitHub Desktop.
Place the name of the category before the archive content in a Genesis Child Theme.
add_action ( 'genesis_before_content','my_category_title' );
function my_category_title() {
if ( is_category() ) {
$term = get_category(get_query_var('cat'),false);
$name = $term->name;
echo '<h1 class="entry-title">'. $name .'</h1>';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment