Fix excerpt

This commit is contained in:
Alexander Agnarson 2017-12-22 16:24:47 +01:00
parent 2f494a0829
commit e2a21a322c
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@
<li><i class="fa fa-clock-o"></i><?php the_time('j M, Y'); ?></li>
</ul><!--/.post-meta-->
<?php if (get_theme_mod('excerpt-length') != '0'): ?>
<?php if (get_theme_mod('excerpt-length','26') != '0'): ?>
<div class="entry excerpt">
<?php the_excerpt(); ?>
</div><!--/.entry-->

View file

@ -559,7 +559,7 @@ add_filter( 'excerpt_more', 'alx_excerpt_more' );
if ( ! function_exists( 'alx_excerpt_length' ) ) {
function alx_excerpt_length( $length ) {
return get_theme_mod('excerpt-length',$length);
return get_theme_mod('excerpt-length','26',$length);
}
}