Home › Forums › Jevelin Theme › Main blog image
Home › Forums › Jevelin Theme › Main blog image
Hi again,
It’s a long shot but I thought I’d ask anyway. The main images shown in the blog and the blog posts have a different ratio from the images I upload to wordpress, which is: 1024 x 769
And so, the image looks cropped above and below. Is there a way to change the ratio of the images shown in the blog to the ratio mentioned above?
URL: https://cake-lab.org/%D7%91%D7%9C%D7%95%D7%92/
Solution for this topic
Hi @Cakelab,
I hope you are well today and thank you for your question.
You can change its size using a custom plugin solution shared in the below topic.
https://support.shufflehound.com/forums/topic/thumbnail-size-for-blog-post/#post-38167
Best regards,
Shufflehound team
Oh nice, thanks!
Ok, so I tried it and it didn’t work. I added the custom plugin to functions.php and changed it to the desired featured image size:
function custom_jevelin_general_setup(){
set_post_thumbnail_size( 660, 496, true );
add_image_size( ‘jevelin-portrait’, 496, 660, true );
add_image_size( ‘jevelin-square’, 660, 660, true );
add_image_size( ‘jevelin-landscape-large’, 1200, 675, true );
}
add_action( ‘init’, ‘custom_jevelin_general_setup’, 999 );
I uploaded a new image, I regenerated the thumbnails too, but nothing helped. The main image still looks cropped as seen in the attached file.
Solution for this topic
Which code have you changed in the above shared custom plugin?
Please change the values 1200, 675 to 9999,9999 in the above code and make sure that the custom plugin is active on your site.
Then regenerate the thumbnails using the regenerate thumbnails plugin.
Thanks!
As always, your solutions help like magic š
You are always welcome here š