-
AuthorPosts
-
May 3, 2015 at 3:08 pm #438516
Hi,
Is there a way to disable dates showing up in magazine view? I’ve already disabled dates in the enfold blog options, but it still shows up in the magazine view. Thanks!May 4, 2015 at 6:56 pm #439193Hi shoo!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
.av-magazine-time { display: none; }
Regards,
YigitMay 5, 2015 at 12:35 pm #439662Hi Yigit, thanks that is perfect.
Now while I’m at it, is there a way to show a short except? Like I have for my “Latest Products” sidebar.
Here’s a link to the site again: https://vipoffers.club/Thanks as always!
May 5, 2015 at 1:49 pm #439682Hey!
Please add following code to Functions.php file in Appearance > Editor and adjust the lenght as needed
add_filter('avf_magazine_excerpt_length','avf_magazine_excerpt_new_lenght', 10, 1); function avf_magazine_excerpt_new_lenght($excerpt) { $excerpt = 100; return $excerpt; }
Regards,
YigitMay 6, 2015 at 2:59 pm #440339Hi Yigit, I have currently added the code to my functions.php file, but looks like it made no difference? I’ve cleared all cache and everything already. Thanks.
May 6, 2015 at 2:59 pm #440340Hey!
Can you please post a screenshot and show the changes you would like to make? The code i posted should change excerpt length on magazine element
Best regards,
YigitMay 7, 2015 at 2:06 pm #440917Hi, Yigit, once again, really appreciating your help. Please find an image of what I’m trying to achieve. image: http://postimg.org/image/yugwf9bdb/
Thanks.
May 9, 2015 at 5:48 am #441877Hi!
Thank you for using Enfold.
The excerpt for small magazine entries is hidden by default because there’s not enough space to accommodate them. If you really want to display it, you can 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, ''); }
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.