Skip to content

Commit

Permalink
Add the topic title and optional description to the first taxonomy page
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbachhuber committed Jul 21, 2011
1 parent 34abdc7 commit b993b25
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
12 changes: 12 additions & 0 deletions loop-index.php
Expand Up @@ -10,6 +10,18 @@
<div class="next-posts-link pagination-link minor-link float-right"><?php next_posts_link( __( 'Next &raquo;' ) ); ?></div>
<div class="clear-both"></div>
</div>
<?php else: ?>

<?php if ( is_tag() ): ?>
<?php
$term = get_queried_object();
?>
<h2 class="view-title"><span class="label">Topic:</span> <?php single_term_title(); ?></h2>
<?php if ( !empty( $term->description ) ): ?>
<div class="view-description"><?php echo wpautop( $term->description ); ?></div>
<?php endif; ?>
<?php endif; ?>

<?php endif; ?>

<div class="posts-stream">
Expand Down
19 changes: 19 additions & 0 deletions style.css
Expand Up @@ -419,6 +419,25 @@ body.home h3 {
* tag.php
*/

.view-title .label {
color: #888888;
text-transform: lowercase;
}

.view-description {
font-size: 16px;
line-height: 24px;
letter-spacing: 0.2px;
padding-top: 5px;
}

.view-description a:hover {
background-color: #F2F2F2;
padding-bottom: 1px;
border-bottom: 1px solid #CCCCCC;
color: #0066CC;
}

body.archive.tag .post .format-label {
padding-top: 2px;
padding-left: 6px;
Expand Down

0 comments on commit b993b25

Please sign in to comment.