WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Vigilance theme + excerpt support (7 posts)

  1. sapountzis
    Member
    Posted 2 years ago #

    I am trying to use the_excerpt() to display excerpts of my posts (instead of the full posts) on my home page. I have followed the instructions in some other threads and replaced the_content() with the_excerpt() on my index.php page but it does not work (I still get the full post). FYI, the more tag did not work for me either (although I did not troubleshoot fully), but I prefer to use the excerpt function.

    I have found conflicting information as to whether this theme (Vigilance) supports excerpts, can someone help me?

    Thanks in advance.

  2. Matthew Gedeon
    Member
    Posted 2 years ago #

    Sounds to me as if it's not in the correct place...but as it is a premium theme, I don't have access to the code to fix it. Premium themes aren't generally supported on this forum as they should have their own support forums.

  3. sapountzis
    Member
    Posted 2 years ago #

    Matthew,

    Thanks the theme is actually free to download here. The paid option is to get additional support and I am trying to contact the developer as well, I just thought the community may already have an answer.

  4. Matthew Gedeon
    Member
    Posted 2 years ago #

    Oh, so I downloaded it, and though I'm not an expert on themese, I'm pretty sure

    <?php the_excerpt(); ?>
    is built into core. If you replace line 16 in it's entirety with the above code, I don't understand why it won't work unless you are getting a cached version. If that doesn't work, then someone else will need to weigh in.

  5. sapountzis
    Member
    Posted 2 years ago #

    If you are referring to the index.php file, I already did that, replacing the <?php the_content(__( 'read more...', 'vigilance' )); ?> line but it does not work, I still get the full posts

  6. sapountzis
    Member
    Posted 2 years ago #

    OK, I am now getting closer, it turns out that by making this change to the home.php (instead of index.php)file I can at least get the excerpt to display, although I still get the full post right after the excerpt....

    Thanks in advance to anyone that has any ideas how to get this to work

  7. sapountzis
    Member
    Posted 2 years ago #

    I finally got this to work, changing the code above on home.php ended up working

Topic Closed

This topic has been closed to new replies.

About this Topic