Tagged: enfold
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
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
Good morning
Yes, its correct :)
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
Thank you very much! :) It’s so cool! :)
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
Hi!
Follow the instructions here: http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
Best regards,
Ismael
Great! :) It’s work!
Enfold support is the best support team :)
Best regards,
Peter