Home › Forums › All Other Themes › Use Excerpts for Feature boxes
- This topic has 7 replies, 3 voices, and was last updated 7 years, 6 months ago by
Forum Moderator.
-
AuthorPosts
-
January 27, 2016 at 7:01 pm #20521
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!
ElizabethJanuary 28, 2016 at 12:26 pm #20645Hi 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,
ShriJanuary 28, 2016 at 4:30 pm #20679Thank you!
January 29, 2016 at 6:52 am #20729Welcome 🙂
Regards,
ShriApril 4, 2016 at 11:50 am #29186Hi. 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?
April 5, 2016 at 6:26 am #29272Hi 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,
BradApril 5, 2016 at 8:16 am #29298Awesome. thanks so much!
April 5, 2016 at 8:49 am #29305🙂
-
AuthorPosts
- You must be logged in to reply to this topic.