Tagged: enfold
-
AuthorPosts
-
October 19, 2015 at 5:55 pm #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 10 years ago by
jambrikp. Reason: wrong site address
October 20, 2015 at 4:40 am #521335Hi Peter,
Just to make sure I’ve understood you correctly; you are looking to display the excerpt on every magazine element, correct?
Regards,
RikardOctober 20, 2015 at 6:27 am #521382Good morning
Yes, its correct :)
October 23, 2015 at 7:02 am #523479Hey!
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,
IsmaelOctober 24, 2015 at 9:36 am #524200Thank you very much! :) It’s so cool! :)
October 26, 2015 at 7:47 am #524682November 5, 2015 at 10:42 pm #531230Hi,
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,
PeterNovember 7, 2015 at 10:28 am #531818Hi!
Follow the instructions here: http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
Best regards,
IsmaelNovember 8, 2015 at 12:25 pm #532023Great! :) It’s work!
Enfold support is the best support team :)
Best regards,
Peter -
This topic was modified 10 years ago by
-
AuthorPosts
- The topic ‘Magazin element visible extract’ is closed to new replies.
