-
AuthorPosts
-
April 23, 2015 at 4:43 pm #433584
Dear Josue,
a final and – perhaps – stupid question: If there will be an update with changes in the main
themes/enfold/config-templatebuilder/avia-shortcodes/magazine.php,
how will that work with the
enfold-child/shortcodes/magazine.php?Many thanks,
YetiApril 23, 2015 at 9:18 pm #433767Hi!
I guess you mean if a new feature or option is added to the Magazine element (in a future version of Enfold), in that case, you won’t have it, as you’re using the child one, however a quick comparison and following merging could easily sort it out.
Best regards,
JosueOctober 6, 2015 at 6:28 pm #514670Can someone post the correct code for the full magazine.php that should be used to show the excerpt in the magazine display?
I am having trouble understanding what changes need to be made.
Thanks
- This reply was modified 9 years, 1 month ago by hmsvictory.
October 6, 2015 at 11:30 pm #514837Hi!
That’s built-in, you can set to show the excerpt in the magazine element, this thread was about adding a read more link if i recall correctly.
Cheers!
JosueOctober 7, 2015 at 12:15 am #514855My mistake then.
What I’m looking to do is have a one line excerpt below each magazine post title. I don’t see an option for that on the layout builder screen. Only to show an excerpt for the larger first post.
October 7, 2015 at 12:44 am #514860Oh ok, simply edit magazine.php, look for this part:
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, ''); }
Change it to:
$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, '');
Cheers!
JosueFebruary 27, 2018 at 3:44 pm #918509There was never a clear explanation as to the fix on this issue. A moderator made a mod and didn’t post their work. Josue above shows a line of code one must search and replace, yet his change is exactly the same – character for character, I’ve compared, no difference! Can anyone please advise. I need the smaller magazine listings to show their excerpts.
February 28, 2018 at 8:23 pm #919247Hi,
Josue asks you to remove the
else {
}have you removed that?
Best regards,
BasilisMarch 1, 2018 at 3:22 pm #919685Works beautifully! Thank you!!! :)
March 2, 2018 at 5:36 am #920077October 5, 2018 at 8:03 pm #1018347The best solution for this I found if you don’t want to modify the main theme files in case you were running a multisite or something.
1. Go to widgets.
2. Create a new custom widget area.
3. Add the “Enfold Latest News” widget. If you run a child theme it will be named “child theme’s name Latest News”.
4. Configure and Save.5. While in the advanced layout editor of a page or post, add a “widget area” element and select your new area.
On the left column, there is a magazine element. Below it is the Enfold Latest News widget.
Now you can make them look the same or to your liking with css. Hide the image and the time with css. Then you can switch the date and title’s <div> order by using the following CSS. NOTE: Target the CSS to your element to avoid conflicts in other areas.
.news-headline { display:table; } .news-time { display: table-header-group; }
October 6, 2018 at 7:17 am #1018437 -
AuthorPosts
- You must be logged in to reply to this topic.