Tagged: Blog, elegant, featured image
How can I show the full size image for the featured image in the blog posts and without the expand on hover to see it complete.
The idea is to show it complete, and that’s it.
Thanks.
Hey peterolle,
Thank you for the inquiry.
You have to modify the includes > loop-index.php file, look for this code around line 88 and adjust the thumbnail size from “entry_with_sidebar” or “entry_without_sidebar” to “full”.
/*
* retrieve slider, title and content for this post,...
*/
$size = strpos( $blog_style, 'big' ) ? ( ( strpos( $current_post['post_layout'], 'sidebar' ) !== false ) ? 'entry_with_sidebar' : 'entry_without_sidebar' ) : 'square';
Best regards,
Ismael
Thank you Ismael.
I have to change ‘square’ to ‘full’? Please share how the code should look after the modification.
Does this applies to any blog style I choose from the list?
Hi,
Thank you for the update.
You have to use the “full” thumbnail to display the original size of the featured image in the single post view.
/*
* retrieve slider, title and content for this post,...
*/
$size = 'full';
Does this applies to any blog style I choose from the list?
Are you trying to adjust the featured image in the actual post page? If yes, then the changes above should work. For the blog overview page, you may have to adjust a different file based on the selected blog style.
Best regards,
Ismael