How to show the excerpt instead of using the 'More' button

Mauer Themes Support Storyteller How to show the excerpt instead of using the 'More' button

This topic contains 1 reply, has 2 voices, and was last updated by  Paul 2 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #264

    johanisk
    Participant

    Loving the theme. I’d like more control over the text that appears under the headline though. How do I make the excerpt appear there rather than the text above the ‘More’ line?

    #271

    Paul
    Keymaster

    Johanisk,

    Depending on the layout you are using, you would need to alter one of the following files:
    content-grid_2_cols.php
    content-grid_3_cols.php
    content-list.php
    content-masonry.php

    There you would need to find the following line:
    <?php if (is_search()) {the_excerpt();} else {the_content();} ?>
    And replace it with this one:
    <?php the_excerpt(); ?>

    Please mind that it’s best to perform such modifications in a child theme, so that they do not get overwritten during a theme update.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘How to show the excerpt instead of using the 'More' button’ is closed to new replies.