Dear Sir
When i upload featured image in single post, i can choose Don’t display image on single post, but it still show in archive, how can i remove it from archive, not show in archive??
Thanks
Hi remix1998!
Thank you for using our theme.
If you want to remove the featured image from the archive page, you need to use enfold-child theme and it needs some modifications to the php source.
If you want to do this, i can send you the modified files.
Best regards,
Günter
Dear Sir
Thanks for your help.
I am not good at php code, can you show me where can i modify php code ?
loop-archive.php is this file ?
appreciate ~
Hi!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
.archive .big-preview.single-big { display: none !important; }
Best regards,
Yigit
it is better to hide the images with a hook. ??? Because Speed and SEO
Is there a hook php to disable the image?
Hi!
You’d need to modify includes/loop-index.php:102-107:
if(!is_archive()){
if(strpos($blog_style, 'big') !== false)
{
if($slider) $slider = '<a href="'.$link.'" title="'.$featured_img_desc.'">'.$slider.'</a>';
if($slider) echo '<div class="big-preview '.$blog_style.'">'.$slider.'</div>';
}
}
Regards,
Josue