Main blog image

Home Forums Jevelin Theme Main blog image

Home Forums Jevelin Theme Main blog image

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    RESOLVED Posts
  • Cakelab
    Participant

    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/

    Attachments:
    You must be logged in to view attached files.

    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

    Cakelab
    Participant

    Oh nice, thanks!

    Cakelab
    Participant

    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.

    Attachments:
    You must be logged in to view attached files.

    Cakelab
    Participant

    Oh, here’s the URL too:

     

    https://cake-lab.org/uncategorized/test/

    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.

    Cakelab
    Participant

    Thanks!

    As always, your solutions help like magic 🙂

    You are always welcome here 🙂

Viewing 8 posts - 1 through 8 (of 8 total)