Hi. How to display featured images inside the posts? With that, I am using this Grig Layout.
Featured images are available in all positions, but Grig Layout mode, they do not appear inside.
Hi,
On Enfold > Blog Style > Please choose onother option except for “Grid Layout”. Create a page, insert the Blog Post element then choose Grid Layout. Set this page as your default Blog Page.
Regards,
Ismael
Hi. Yes, but then the posts in different rubriks will not be entered as Grid Layout. I need that to any archives are Grid Layout.
Hi,
Undo the steps we did. Please follow this one. Edit includes > loop-index.php, find this code:
//on single page replace the link with a fullscreen image
if(is_singular())
{
$link = avia_image_by_id(get_post_thumbnail_id(), 'large', 'url');
}
Below, add this code:
if(strpos($blog_style, 'grid') !== false)
{
echo '<a href="'.$link.'"><img src="'.$link.'" title="" alt="" class="blog-grid-preview"></a>';
}
Edit custom.css or Quick CSS, add this code:
.blog-grid-preview {
width: 95%;
border-radius: 10px;
}
Regards,
Ismael
Thanks!
Maybe should be added to update or sticky?
Glad Ismael could help :)
Let us know if you have any other questions or issues.
@DigitalMedia – We’ll be adding some updated documentation with various code snippets like this pretty soon.
Regards,
Devin