Use Excerpts for Feature boxes

Home Forums All Other Themes Use Excerpts for Feature boxes

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #20521
    ElizabethElizabeth
    Participant
    • Topics: 4
    • Replies: 5
    • Total: 9
    Member since: January 8, 2016

    In the Naturo theme, I would like to use a manual excerpt for the feature boxes on the home page. I have added excerpts to the pages that are used, but I still see the page text, not the excerpts: http://peridot.ebdesignonline.com/

    Thanks!
    Elizabeth

    #20645
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 30977
    • Total: 30977
    Member since: August 16, 2013

    Hi Elizabeth,

    Kindly go to function.php and find this get_the_content

    replace it with this get_the_excerpt

    If you still having a issue with this let us know.

    Regards,
    Shri

    #20679
    ElizabethElizabeth
    Participant
    • Topics: 4
    • Replies: 5
    • Total: 9
    Member since: January 8, 2016

    Thank you!

    #20729
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 30977
    • Total: 30977
    Member since: August 16, 2013

    Welcome 🙂

    Regards,
    Shri

    #29186
    LimontLimont
    Member
    • Topics: 2
    • Replies: 4
    • Total: 6
    Member since: April 3, 2016

    Hi. I am using the IT consultant pro theme and would like to display the page excerpts in the feature boxes on the front page. I tried the functions.php route as described above but there is no “get_the_content” funtcion to replace…

    How is it done in the IT consultant pro theme?

    #29272
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 30977
    • Total: 30977
    Member since: August 16, 2013

    Hi Limont,

    Kindly go to page-box.php and find this code
    <p><?php echo wp_trim_words( get_the_content(), of_get_option('pagecontentlimit'), '' ); ?></p>

    And replace it with this code
    <?php the_excerpt(); ?>

    Regards,
    Brad

    #29298
    LimontLimont
    Member
    • Topics: 2
    • Replies: 4
    • Total: 6
    Member since: April 3, 2016

    Awesome. thanks so much!

    #29305
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 30977
    • Total: 30977
    Member since: August 16, 2013

    🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.