WordPress.org

Forums

Fictive
[resolved] How do I use excerpts on my home page? (7 posts)

  1. Scott
    Member
    Posted 1 year ago #

    Instead of using the read more code in my blog posts (which is too limiting to me) I want to display the Excerpt field on my home page for listing recent posts.

    I don't see an explicit setting for this in Fictive. I don't mind adding code as long as I can do it in some way that won't get overwritten when I update the theme.

    Is there a way I can make this happen?

    The blog I need help with is scottspinola.com.

  2. Scott
    Member
    Posted 1 year ago #

    My alter ego now that I figured out how to access the account. Just bumping into my queue.

  3. First thing you'll need to do is make a child theme, so your tweaks won't be overwritten when updating the theme. Here are some guides in case you haven't made one before:

    http://codex.wordpress.org/Child_Themes
    http://op111.net/53/
    http://vimeo.com/49770088

    Once your child theme has been set up, copy the file content.php from your parent theme into the child theme folder.

    On line 44, change

    the_content

    to

    the_excerpt

    Save the file and upload and activate your child theme.

    Codex reference: http://codex.wordpress.org/Function_Reference/the_excerpt

    Let me know how it goes.

  4. Scott
    Member
    Posted 1 year ago #

    Thanks for this info. I'll give it a shot. Looks like I may be making two mods in the theme now if I can achieve what I want in the other question I had.

    It continues to frustrate me that such basic functionality is not included in WordPress by default.

    Thanks for your help Kathryn... in both questions!

  5. Scott
    Member
    Posted 1 year ago #

    This worked great. Thanks Kathryn!

    Now I just need to figure out how to get the featured image on my post pages. If you have any thoughts on that they'd be appreciated: http://wordpress.org/support/topic/fictive-theme-featured-image-not-displaying-on-the-post-pages

  6. shweid
    Member
    Posted 11 months ago #

    I have the same issue as Scott.

    I would like to have my home page display excerpts.

    Are you saying this functionality is not built into Fictive, and that I have to change the code? I am very squeamish about getting into that and have no idea what a child theme is, etc. Perhaps I need to select a new theme?

    I also struggle with featured image, never knowing when and where it will or will not appear.

    My site is livingblissed.com.

    Thank you.

  7. Kathryn
    Automattic Happiness Engineer
    Posted 10 months ago #

    Are you saying this functionality is not built into Fictive, and that I have to change the code?

    There are two ways to display excerpts in Fictive. You could add the More tag manually in each post where you want to break it:

    http://en.support.wordpress.com/splitting-content/more-tag/

    (This guide is from WordPress.com but the tag is the same for self-hosted.)

    Alternatively, you could create a child theme and change the code so that excerpts are displayed on the homepage automatically.

    Both routes will work, but the child theme route means you won't need to manually add the tag. The child theme route also lets you use manual excerpts, if you prefer to craft custom excerpts for any posts.

    I am very squeamish about getting into that and have no idea what a child theme is, etc. Perhaps I need to select a new theme?

    Child themes are fairly simple to set up but if you're not comfortable at all touching your code you may be better of with a theme that displays excerpts by default.

    If you have any other questions about Fictive, please start a new thread, thanks!

    https://wordpress.org/support/theme/fictive#postform

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.