Customize Teasers

Applies to Version(s): Thesis 1

Teasers One Across Instead of Two

Place this code in custom.css:

.custom .teaser {
   width: 100%;
   margin-top: 2em;
   padding-top: 2em;
   border-top: 1px dotted #bbb;
   text-align: justify;
}
.custom .teasers_box {
   padding-top: 0;
   padding-bottom:0;
   border-top: 0;
}

Change Color of Teaser Titles

Place this code in custom.css, and adjust the color values to your requirements:

.custom .teasers_box h2 a {
  color: red;
}
.custom .teasers_box h2 a:hover {
  color: yellow;
}

Reduce Paragraph Spacing (Before and After Excerpt)

Place this code in custom.css:

.custom .teaser .format_teaser {
   margin-bottom:4px;
   margin-top:4px;
}

Adjusting Teaser Length

Place this code in custom_functions.php:

function my_excerpt_length($length) {
   return 50;
}
add_filter('excerpt_length', 'my_excerpt_length');

Remove Ellipses

Place this code in custom_functions.php:

function no_ellipsis($text) {
    return str_replace('[...]', '', $text);
}
add_filter('the_excerpt', 'no_ellipsis');