I used the info found in this post here, to modify the magazine blog layout to show the posts excerpt text under the title. However, after updating the theme today to 4.8 all of my excerpts are no longer showing.
I tried to modify the theme’s new magazine.php file, but it seems that it has changed and the fix no longer works. Could you help me bring back the excerpts to the blog magazine layout listing?
Thanks!
Hi ceakins1908,
Sure, please go to wp-content > themes > enfold > config-templatebuilder > avia-shortcodes > magazine > magazine.php (line 1250-1261):
if( $style == 'small' )
{
if( empty( $this->atts['thumbnails'] ) )
{
$image = '';
$extraClass = 'av-magazine-no-thumb';
}
}
else
{
$excerpt = ! empty( $entry->post_excerpt ) ? $entry->post_excerpt : avia_backend_truncate( $entry->post_content, apply_filters( 'avf_magazine_excerpt_length', 60 ), apply_filters( 'avf_magazine_excerpt_delimiter', ' ' ), '…', true, '' );
}
Replace it with:
if( $style == 'small' )
{
if( empty( $this->atts['thumbnails'] ) )
{
$image = '';
$extraClass = 'av-magazine-no-thumb';
}
}
$excerpt = ! empty( $entry->post_excerpt ) ? $entry->post_excerpt : avia_backend_truncate( $entry->post_content, apply_filters( 'avf_magazine_excerpt_length', 60 ), apply_filters( 'avf_magazine_excerpt_delimiter', ' ' ), '…', true, '' );
Let us know if this helps.
Best regards,
Nikko
Thanks Nikko!
You can close this thread. I had saved a copy of the file I had previously modified and I was able to use it in my child theme to overide the newer version and that worked.
Thanks again for your help!
Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon