Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #521099

    Hello!

    I would like to show on magazin element the post’s manual extract content. But the extract visible only if I put a tick ‘the first entry be displayed bigger’ option. So how can I do visible av-magazine-content entry-content to all magazin posts? Right from the picture, below the title?

    I have no idea… please help me.

    Best Regards,
    Peter

    • This topic was modified 9 years, 1 month ago by jambrikp. Reason: wrong site address
    #521335

    Hi Peter,

    Just to make sure I’ve understood you correctly; you are looking to display the excerpt on every magazine element, correct?

    Regards,
    Rikard

    #521382

    Good morning

    Yes, its correct :)

    #523479

    Hey!

    Open up wp-content\themes\enfold\config-templatebuilder\avia-shortcodes\magazine.php then look for this:

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

    Regards,
    Ismael

    #524200

    Thank you very much! :) It’s so cool! :)

    #524682

    Hi,

    Glad we could help :-)

    Best regards,
    Rikard

    #531230

    Hi,

    I have a little question. How can I protect this code from Enfold updating?
    I use child so just copy the magazine.php to child’s function.php?

    Thank you,

    Best regards,
    Peter

    #531818
    #532023

    Great! :) It’s work!

    Enfold support is the best support team :)

    Best regards,
    Peter

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Magazin element visible extract’ is closed to new replies.