• Resolved somethere

    (@somethere)


    Hi,

    is there a way to add an excerpt to the post previews on the .home and .category sections?
    I can fill out the excerpt-form in my post dashboard, but it doesn’t show on the website.. Any ideas?

    Thank you very much in advance,

    Nico

Viewing 1 replies (of 1 total)
  • Thread Starter somethere

    (@somethere)

    I think I found way myself – not sure if it’s a legitimate solution though, as my script skills are rudimentary:

    To add the excerpt, tutorials suggest to open up index.php, category.php and archive.php and replace
    <?php the_content(); ?>
    with
    <?php the_excerpt(); ?>

    However, for Yuuta, the index.php doesn’t contain the_content directly but links to it:
    get_template_part( ‘template-parts/content
    so we’ll first have to open up the folder template-parts, which contains the content.php – and the code we need to replace.
    I assume that’s a given for most, but maybe it helps someone who is as confused by php as I am! 😉

Viewing 1 replies (of 1 total)
  • The topic ‘Add excerpt?’ is closed to new replies.