Hello,
My blog page uses a custom layout using the magazine module.
My problem is that if you view a specific category, it shows all the posts, but without the post preview image.
How can I add that preview image into category pages ?
Thanks
Dan
Hey tech500!
Thank you for using Enfold.
Looks like you didn’t apply featured images on the posts. Edit the posts then add featured images. It should show as preview image on archive pages.
Cheers!
Ismael
Ismael,
Featured image is enabled and set, but still, no preview is shown.
Dan
Hi!
please refer to this post: https://kriesi.at/support/topic/how-can-i-show-the-feature-image-on-category-page/#post-340867 and as Ismael wrote add this to functions.php:
add_filter('avf_blog_style','avia_change_archive_blog_layout', 10, 2);
function avia_change_archive_blog_layout($layout, $context){
if($context == 'archive') $layout = 'multi-big';
return $layout;
}
Hope that helps.
Regards,
Andy
Andy, it works.
And If anyone interested:
To disable the preview featured image light box, not clickable, add this custom css:
.big-preview.multi-big a {
pointer-events: none;
}
And to hide the Author icon, use $layout = 'single-big'
instead of $layout = 'multi-big'
Thanks
Dan