- This topic has 4 replies, 2 voices, and was last updated 4 years, 3 months ago by Glen Pavelich.
-
AuthorPosts
-
January 23, 2020 at 12:06 pm #233800Glen PavelichParticipant
Is there any way to have the posts (on the main page) show the actual post images and not the featured image. My client creates posters for all events and not card sized (horizontal) images. These do not display well as it is set up with featured images, except if the poster is cropped and this doesn’t work well in most cases.
January 24, 2020 at 12:11 am #233860SkandhaParticipant@fireflywebs: Hello there,
I am afraid that it is not possible. Maybe creating a new image size for the blog post shall resolved the issue. For that you will need to create a child theme and do a little bit of customization. Let me know if you are familiar with child theme customization otherwise I suggest you to hire a customizer to get it done.Kind Regards,
SkandhaJanuary 27, 2020 at 6:18 pm #234204Glen PavelichParticipantYes, I always apply a child theme. How does one create a new image size for the blog posts.
(test.eatonia.ca)January 29, 2020 at 12:14 am #234331SkandhaParticipant@fireflywebs: Hello there,
First of all you will need to create new image size
Go to => Child Theme Folder => functions.php and add the following code.// Used in Single Post Pages 480px width and 480px height add_image_size( 'catch-inspire-single-post', 480, 480, true );
You can change the image size according to your requirement.
Then
Go to => Parent theme folder => template-parts => content => content-single.php Copy this file to the child theme folder such that the path to the file is the same as in the parent theme folder.Now, Go to line no 21 => replace the code with
catch_inspire_post_thumbnail( 'catch-inspire-single-post' );
Let me know if this works out!
Kind Regards,
SkandhaJanuary 29, 2020 at 9:28 am #234368Glen PavelichParticipantI will do this but it might take a few days. I first need my client to take a look at the present layout before I make these changes. Thanks. Will get back to this ticket.
(Looks like this is to change the post image size. Will it change the feature image size that appears on the home page?)
-
AuthorPosts
- The topic ‘Post Images’ is closed to new replies.