Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1341695

    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

    • This topic was modified 2 years, 9 months ago by Mathuseo.
    #1341928

    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

    #1341938

    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

    #1341983

    Hi Marcel,

    Great, I’m glad that Ismael could help you out. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.