Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Commit

Permalink
Fix #8 Fix taxonomy description styling
Browse files Browse the repository at this point in the history
  • Loading branch information
admturner committed Aug 29, 2019
1 parent 0b5d43c commit 32274db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion includes/template-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function filter_courses_date( $post_date ) {
*/
function courses_archive_description( $description ) {
if ( is_tax( 'course_tag' ) || is_tax( 'learning_program' ) ) {
return str_replace( '<p>', '<p class="meta">', $description );
return str_replace( '<p>', '<p class="taxonomy-description">', $description );
}
}
add_filter( 'get_the_archive_description', __NAMESPACE__ . '\courses_archive_description', 10, 1 );
Expand Down
5 changes: 5 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@ svg.svg-icon {
.wsuwp_hrs_courses .course-meta .label {
font-weight: 600;
}

.wsuwp-courses-archive .taxonomy-description {
padding-left: 2rem;
max-width: 45em;
}

0 comments on commit 32274db

Please sign in to comment.