-
AuthorPosts
-
September 24, 2019 at 10:13 am #1141312
Dear Support
after searching this support forum & google I´m a bit frustrated because I couldn´t find a solution for my problem with this magazin lay-out.My customer wishes to have a magazin blog lay-out which doesn´t exist in enfold:
LEFT CONTAINER RIGHT CONTAINER
image position left (column 33%) | post title + excerpt + read more link on the right (column 65%)I alreade managed to increase the image size on the left but can´t get the blog excerpts to be shown
could you please help?link to the preview page in private content
September 24, 2019 at 5:42 pm #1141477Hey Stanko,
Please have a look at the following thread
If you need further assistance please let us know.
Best regards,
VictoriaSeptember 25, 2019 at 10:56 am #1141738Dear Viktoria
thanks for the fast reply & link – which I already knew and tried this version but with no effect
in that thread (from 2014) this folder path has changed:
wp-content\themes\enfold\config-templatebuilder\avia-shortcodes\magazine.php
to this
wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/magazine/magazine.phpmaybe that´s why this solution doesn´t work?
+++++++++++++++++
this is what I already tried: (Moderator Ismael: March 27, 2018 at 5:58 am)
+++++++++++++++++
Hi,
Thank you for the info.
Please look for this code around line 690.if(empty($this->atts[‘thumbnails’]))
{
$image = “”;
$extraClass = “av-magazine-no-thumb”;
}Below, add the excerpt.
$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,
Ismael
+++++++++++++++++any other ideas?
September 27, 2019 at 2:31 am #1142537Hi,
Thank you for the update.
Yes, the content of that file has changed a bit. Please look for this code around line 955:
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, ''); }
Replace it with this one:
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, '');
That will enable the excerpt for every items in the magazine element.
Best regards,
IsmaelSeptember 27, 2019 at 1:20 pm #1142745Dear Ismael, dear Viktoria
thank you sooo much for your great support – it´s working !
we can close this thread
best regards
StankoSeptember 27, 2019 at 1:29 pm #1142748Ups – almost done – now I see there´s no “read more” link / button… is it posible to show this under the excerpt?
sorrySeptember 30, 2019 at 4:41 am #1143210Hi,
You’re most welcome. Now, to add the read more link, add this code at the very end of last modification.
$excerpt .= '<div class="read-more-link"><a href="'.get_the_permalink($entry->ID).'" class="more-link">'.__('Read more','avia_framework').'<span class="more-link-arrow"></span></a></div>';
That should append the the read more link after the excerpt.
Best regards,
IsmaelSeptember 30, 2019 at 9:29 am #1143253Dear Ismael
great – you´re the best :-)
thank you so muchno you can close this thread
October 1, 2019 at 8:55 am #1143592 -
AuthorPosts
- The topic ‘Show excerpt in all magazine blog list with "Read More" link’ is closed to new replies.