Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #8418

    Hi, I would like to include a small intro to the latest news blog posts on the home page – I believe this is referred to as an excerpt.

    Could you please let me know how to include it in the code?

    Thanks!

    Tracey

    #61352

    Hey,

    in functions.php replace:

    <span class="meta">

    with:

    <span class="latpostex">'.get_the_excerpt().'</span><span class="meta">

    You can style the excerpt text with the latpostex css class.

    #61353

    Hi,

    I had the same problem but couldn’t find the <span class=”meta”> in the functions.php

    Thanks

    #61354

    Hi,

    the line can be found on line 86 in the functions.php file (of the levitation theme).

    echo'</span><span class="meta">

    #61355

    Thank you, I will try this!

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

The topic ‘Add excerpt to latest news on home page’ is closed to new replies.