Skip to content

Commit

Permalink
11_07
Browse files Browse the repository at this point in the history
  • Loading branch information
mor10 committed Dec 15, 2016
1 parent 7a8b5df commit 66d696f
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion inc/template-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,20 @@ function humescores_post_navigation() {
'<span class="screen-reader-text">' . __( 'Previous post:', 'humescores' ) . '</span> ' .
'<span class="post-title">%title</span>',
) );
}
}

/**
* Customize ellipsis at end of excerpts.
*/
function humescores_excerpt_more( $more ) {
return "";
}
add_filter( 'excerpt_more', 'humescores_excerpt_more' );

/**
* Filter excerpt length to 100 words.
*/
function humescores_excerpt_length( $length ) {
return 100;
}
add_filter( 'excerpt_length', 'humescores_excerpt_length');

0 comments on commit 66d696f

Please sign in to comment.