• Resolved masonlau

    (@masonlau)


    Hello,
    This theme is gorgeous! Can you tell me the best way to get the post the post excerpt rather than the entire post?

    I know how to do it (php_the_excerpt), but the content template looks a bit different from what I am used to and I don’t want to disrupt anything.

    My site features presentations inside each post; it won’t do to have them all loading when someone clicks on the blog.

    Thank you,
    Mason

Viewing 4 replies - 1 through 4 (of 4 total)
  • > This theme is gorgeous!

    Yay! I won’t argue with that. 🙂

    > I know how to do it (php_the_excerpt), but the content template looks a bit different from what I am used to and I don’t want to disrupt anything.

    Use a child theme. And if you already have one, just make a backup before the next edit so you can revert if anything goes wrong.

    More info: http://codex.wordpress.org/Child_Themes

    Can you tell me the best way to get the post the post excerpt rather than the entire post?

    Copy content.php into your child theme.

    Change this:

    the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'isola' ) );

    to this:

    the_excerpt();

    It won’t affect image and video post formats (as you can see if you look at the if statement closely.

    And don’t be afraid to make changes with a child theme (and keep good backups). 🙂

    Thread Starter masonlau

    (@masonlau)

    Thanks a bunch:). I was avoiding creating a child theme–I know how, but I am lazy.
    You are right, though. Sigh.

    how do i get rid of the featured image in the content.php? thanks for any help.

    Moderator Kathryn Presner

    (@zoonini)

    mac.mcrae – since your question is unrelated to masonlau’s issue, I’ve replied the separate thread you already posted. Let’s continue the discussion there:

    http://wordpress.org/support/topic/perfect-minimal-theme

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Get Post Excerpt’ is closed to new replies.