Created
December 22, 2012 03:02
-
-
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.
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_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