Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #310131

    How can I do this without having “Should the first entry be displayed bigger” activated?

    In other words, how can I show excerpts for all ‘magazine’ posts without the first entry displayed bigger? As if “Should the first entry be displayed bigger” were toggled off.

    Thanks!

    #310861

    Hi Ti7V!

    Try to replace this code in enfold/config-templatebuilder/avia-shortcodes/magazine.php:

    
    			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, '');
    			}
    

    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, '');
    

    Best regards,
    Peter

    #311057

    Yup Peter,

    That worked. “Should the first entry be displayed bigger” toggled off and showing excerpt using code from:

    https://kriesi.at/support/topic/show-excerpt-in-all-magazine-blog-list/

    Thanks again! Very pleased with Kriesi support :)

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘'Show excerpt in all magazine blog list'’ is closed to new replies.