- This topic has 7 replies, 3 voices, and was last updated 9 years, 5 months ago by .
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- You must be logged in to reply to this topic.
Home › Forums › All Other Themes › Use Excerpts for Feature boxes
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
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
Thank you!
Welcome 🙂
Regards,
Shri
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?
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
Awesome. thanks so much!
🙂
Do you want to activate WordPress plugins from the database? This term is new yet interesting to learn. And if you are looking for an […]
Image Gallery WordPress Plugins You’ve got stunning visuals, but WordPress’s built-in gallery block is too basic. It doesn’t let you do fancy layouts, lightboxes, or […]
Insert Headers and Footers Plugins When you need to add essential scripts—think Google Analytics, Facebook Pixel, or custom CSS—to your site, modifying theme files is […]