Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #441575

    HI
    I am trying to have all the magazine entries on the page below show excerpts, without the large image at the top option.
    I saw on another thread to modify the magazine.php file with this:
    //$style = ($loop === 1 && !empty($this->atts[‘first_big’])) ? “big” : “small”;
    $style = (!empty($this->atts[‘first_big’])) ? “big” : “small”;
    but that gives me excerpts on all only when there is a large image at the top. Can you help with this?
    Also, can that be put into my child theme?

    I also have a question about the magazine element sorting – what does the “all” do – on the section below it doesn’t seem to be working correctly – isn’t it pulling from all the categories selected? I should have at least 4 entries there. ??

    thanks very much!
    Nancy

    • This topic was modified 9 years, 6 months ago by Munford.
    #442260

    Hi Munford!

    Thank you for using Enfold.

    Please try the modification provided here: https://kriesi.at/support/topic/disable-dates-showing-in-magazine/#post-441877

    Unfortunately, you can’t add it on a child theme.

    Best regards,
    Ismael

    #442382

    I have this:
    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, ”);

    but I don’t see the excerpts. ??
    /Nancy

    #442914

    Hi!

    I’m sorry but you didn’t follow the instructions.

    Edit config-templatebuilder > avia-shortcodes > magazine.php, find this code on line 558:

    if(empty($this->atts['thumbnails']))
    				{
    					 $image = "";
    					 $extraClass = "av-magazine-no-thumb";
    				}

    Below, add this:

    $excerpt = !empty($entry->post_excerpt) ? $entry->post_excerpt : avia_backend_truncate($entry->post_content, apply_filters( 'avf_magazine_excerpt_length' , 10) , apply_filters( 'avf_magazine_excerpt_delimiter' , " "), "…", true, '');	
    			
    

    Please check it carefully.

    Regards,
    Ismael

    #496471

    thanks

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘magazine entry excerpt on all, sorting’ is closed to new replies.