You appear to be a bot. Output may be restricted
Description
Displays the optional excerpt.
Wraps the excerpt in a div element. Create your own twentysixteen_excerpt() function to override in a child theme.
Usage
twentysixteen_excerpt( $css_class );
Parameters
- $css_class
- ( string ) optional default: entry-summary – Optional. Class string of the div element. Defaults to 'entry-summary'.
Returns
void
Source
File name: twentysixteen/inc/template-tags.php
Lines:
1 to 12 of 12
function twentysixteen_excerpt( $css_class = 'entry-summary' ) { $css_class = esc_attr( $css_class ); if ( has_excerpt() || is_search() ) : ?> <div class="<?php echo $css_class; ?>"> <?php the_excerpt(); ?> </div><!-- .<?php echo $css_class; ?> --> <?php endif; }