-
AuthorPosts
-
May 8, 2015 at 3:53 pm #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.
May 11, 2015 at 8:46 am #442260Hi 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,
IsmaelMay 11, 2015 at 12:04 pm #442382I 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. ??
/NancyMay 12, 2015 at 10:56 am #442914Hi!
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,
IsmaelSeptember 1, 2015 at 3:57 pm #496471thanks
-
AuthorPosts
- The topic ‘magazine entry excerpt on all, sorting’ is closed to new replies.