You’re very welcome about the theme, and also thank you for the comment. I just did a test for this on my local setup and you need to open the theme’s content.php file, then in the code there are three instances of this:
<?php the_content( __( ' Continue reading...', 'celestial' ) ); ?>
….you want to change that to this:
<?php the_excerpt( __( ' Continue reading...', 'celestial' ) ); ?>
There’s 3 instances of this because it depends if the featured image (thumbnail) is being used (the small or large one) or if there are none for a particular post.
I should also mention that the “Continue Reading” link will actually go to the end of the last paragraph line (after the excerpt length).
Thanks, that worked. I copied the content.php into my child theme and made the changes and voila! I also tried to change, for this, the excerpt length by adding this code to my functions.php (standard wp hack).
// Changes the excerpt length to a custom value
function custom_excerpt_length( $length ) {
return 1000; // Change this to the number of characters you wish to have in your excerpt
}
add_filter( ‘excerpt_length’, ‘custom_excerpt_length’, 999 );
Didn’t work for this theme. Any suggestions?
Why yes I do 🙂
I have this already coded in but a special one that lets you use custom counts. I actually use this for the Portfolios, depending if you are using a 1,2, 3, or 4 column layout (although this is only available in the Pro version of Celestial).
However, the change from the earlier code from the_content to the_excerpt, can be done this way:
<?php echo excerpt(25); ?>
Change the 25 to your own count of words (this is not for characters). In case you are wondering where the function is in the functions.php, it’s around line 765 // Special excerpt length per instance ie showcase column excerpts
Thanks for all the great support you’re offering for this theme. I’m sure I’m not the only one who greatly appreciates all the time you spend replying to our “not so smart queries.”
All the best.
You’re very welcome and a big thank you for your great review and rating 🙂
Thanks so much Uwhoosh for the Tempate Celestial – Lite and for helping me to figure out why I couldn’t get the excerpt to show.
My site is:510pictures.com/Blog
By the by, is there a way to get the ‘Featured Image’ to show up with the excerpt?
Blessings.
My pleasure. Yes, if you add an image as a featured image it should show in the excerpt, here’s an example.
I’ve had a look at your blog and you’re using a standard post, so that should definitely work.
All the best and happy blogging.
Everyone is happy I love that 🙂
Yes! It works. Thanks so much for the quick response.
Blessings
Hi again,
Is there a way to change the color of the text in the Excerpt section?
Thanks
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
@fivetenpictures, Consider creating your own thread to discuss that.