Hello,
I was looking for the blog layout for individual posts in the Enfold settings. Unfortunately, under “Style for single posts” I can’t find an option to remove the preview image that precedes the single post altogether. Setting it to display:none via CSS is not an option, since the image will still load.
I don’t want the post image to be displayed at the top of the post at all, otherwise it often duplicates the image in the post, or we use post images that would simply be inappropriate for the top of the post at single level. Is there a code snippet to hide the post images at the top of the post altogether (without output in the HTML)?
Thanks in advance and best regards,
Marcel
Hey Marcel,
Thank you for the inquiry.
You have to manually remove the featured image from the includes > loop-index.php file. Remove this code around line 244..
echo '
<div class="big-preview ' . $blog_style . '" ' . avia_markup_helper( array( 'context' => 'image', 'echo' => false ) ) . '>' . $slider . '</div>
';
.. and line 385.
if( $slider )
{
echo '
<div class="big-preview ' . $blog_style . '" ' . avia_markup_helper( array( 'context' => 'image', 'echo' => false ) ) . '>' . $slider . '</div>
';
}
Please make sure to purge the cache after editing the file.
Best regards,
Ismael
Hi Ismael,
Thank you very much. That worked wonderfully
(A note for later readers of this post: the loop-index.php file should be copied from the Enfold folder to the /your-child-theme/includes/ folder and edited there to be update-safe).
Best regards,
Marcel