-
AuthorPosts
-
November 7, 2015 at 7:02 pm #531916
Hi,
Is it possible to feed an excerpt into the magazine sections? I was able to increase the size of the spaces but can’t figure out how to make the images bigger to fill the desired space and how feed in the excerpt of the post. Or if you can suggest another approach that achieves the same thing.
Thanks!November 9, 2015 at 6:31 pm #532814Hey KarenRushforth!
Add this to around line 570 in the /enfold/config-templatebuilder/avia-shortcodes/magazine.php.
$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!
ElliottNovember 9, 2015 at 6:44 pm #532824Thank you! I don’t know how to find that file, can you point me in the right direction?
Thanks.November 9, 2015 at 9:35 pm #532908Hey!
You will need to login to your server via FTP and edit it. Or login to your hosting providers control panel and look for a web based file manager which you can use to edit files on the server.
Cheers!
ElliottNovember 14, 2015 at 9:49 pm #535957I work with John Teague at Themesurgeons, and he checked the code for me and let me know the following:
The code you’ve sent is the exact same code that already appears at line 566 of magazine.php. This was there before and after the latest theme update I just performed.
Adding the same code they sent you is not the right solution here. If their solution is already present in that PHP file, and it is not solving the problem for you, it means that their solution is incorrect.
I’ve attached a link to the page in question. I need to show excerpts from Posts in the Avia Content “Magazine” content element, not just the title, and I need the image to fill the space.
Thank you for your help,
KarenNovember 15, 2015 at 7:05 pm #536161Hey!
Yes, it’s already on line 566 but it’s in an if statement so it only gets applied on the first big image. If you copy it and add it again on line 570 then it will be applied for each entry. Did you try it?
Regards,
Elliott- This reply was modified 9 years, 1 month ago by Elliott.
November 17, 2015 at 5:58 am #537102That did not do anything, there is still not excerpt showing. We followed the instructions exactly.
November 20, 2015 at 5:57 pm #539824Hi!
Well it’s working fine on my XAMPP setup. Not sure what else to tell you here. Make sure your using the latest version of Enfold, 3.4.4.
Regards,
Elliott -
AuthorPosts
- You must be logged in to reply to this topic.