td_module.php

Posted in: Newspaper
Post count: 5

I’m not able to update the excerpt length (following function), unless I update the parent theme directly .. any thoughts or other alternatives in updating excerpt length?

Basically, I want the ‘manually-added’ excerpt available via a page to be about 35 words (similar to td_module-11.php) vs the entire excerpt.

function get_excerpt($cut_at = '') {

//If the user supplied the excerpt in the post excerpt custom field, we just return that
if ($this->post->post_excerpt != '') {
return $this->post->post_excerpt;
}

Post count: 22421

Hello,

You can override the theme excerpts by adding the excerpt manually to the post in the excerpt field here: https://www.screencast.com/t/ufBRvaGLpMhZ

Thank you!

Post count: 5

The following works, but only when I update the parent theme vs child .. do I need to add all files under directory includes > wp_booster to make this change appear in my child theme?
function get_excerpt($cut_at = '') {

//If the user supplied the excerpt in the post excerpt custom field, we just return that
//HIS - if manual excerpt, trim to be 55 words vs entire excerpt
if ($this->post->post_excerpt != '') {
$custom_excerpt = $this->post->post_excerpt;
return wp_trim_words( $custom_excerpt, 55, '....');
}

Post count: 22421

Hi,

Unfortunately, not all files work from the child theme. Most of the files under wp_booster will only work from the main theme.

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.