• Resolved worklifeworld

    (@worklifeworld)


    Hello,

    I recently started my site using theme sela. I did quite some changes to the CSS including removing the RHP from the post pages.

    It works absolutely fine although the images that I upload now to fit in that wider space (1070 x 408px) are not as sharp as they should be.

    After some research, I realised that it’s because it still has as a default the original size of 820px wide, so it just reduces the featured image at some point, and expands them to the space it has, making them less sharp.

    Where and how can I fix this? I have had a look at the CSS, php and more but no luck.
    Here’s a link: http://worklifeworld.com/you-only-had-one-job

    They show as /wp-content/uploads/2016/06/finihsmed-820×312.jpg whilst the original file is 1070×408 (/wp-content/uploads/2016/06/finihsmed.jpg), and in the source I see those smaller dimensions too when inspecting the element but I can’t findwhat it refers to in the backend.

    Thank you for the help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @worklifeworld,

    Sela is programmed to crop thumbnails at 820px by 312px. This is set in the sela_setup() function in the theme’s functions.php file:

    set_post_thumbnail_size( 820, 312, true );

    You can override the parent theme’s function by first creating a child theme and then adding the following to the functions.php file in your child theme:

    function sela_child_thumbnail() {
        set_post_thumbnail_size( '1326', '995' );
    }
    add_action( 'after_setup_theme', 'sela_child_thumbnail', 11 );

    You may need to regenerate your thumbnails before noticing a change. The following plugin will handle that on your behalf:

    https://wordpress.org/plugins/regenerate-thumbnails/

    Let me know how you get on with those steps or if you have any extra questions while walking through them.

    Thread Starter worklifeworld

    (@worklifeworld)

    Worked like a charm, thank you so much!

    Now I have sharp thumbnails, only need to resize a handful of them that I never cropped 🙂

    Thank you!!

    You’re most welcome! I’m glad that helped out. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Thumbnail resizing without RHP’ is closed to new replies.