• Resolved allanlud

    (@allanlud)


    Hi all, I’m sure there has been many posts about this, I have read a few but still can’t manage to get it working.

    I copied the twenty ten theme and changed the html to match the rest of the site I’m working on. My main problem is I’m not sure where to add that code. I’ve tried in loop.php and loop-page.php not many other places I’ve seen it like suggested by other people.

    Thanks for any replies.
    Al.

Viewing 3 replies - 1 through 3 (of 3 total)
  • It’s not clear what you want to add. Are you trying to create a child theme?
    Perhaps this will help: https://codex.www.ads-software.com/Child_Themes

    Thread Starter allanlud

    (@allanlud)

    Sorry my post title seems to have been cut.

    I want to add the_excerpt code to show a certain amount of characters or words (whichever is easiest)to each post and I’m not too sure where to add the code. I’ve tried in loop.php and loop-page.php as they are 2 of the places I have seen the_content to replace with the_excerpt.

    Thread Starter allanlud

    (@allanlud)

    Ok I have it sorted. I found this in loop.php:

    <?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>

    and replaced it with:

    if ( is_home() || is_archive() || is_search() ) :

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding the_excerpt’ is closed to new replies.