• Resolved elcondorito

    (@elcondorito)


    Hey @apprimit !

    Regarding Object fit cover topic raised by @milettic, I found a solution (the CSS hack you provided does not work, at least for me).

    Add this in functions.php :
    add_image_size( 'owpslider', 300, 270, true ); // 220 pixels wide by 270 pixels tall, hard crop mode

    Of course, dimensions may vary, the “true” parameter is this important stuff.

    I personally put it in a custom plugin, but it works just fine otherwise.

    Then for existing post you need to install Regenerate thumbnails plugin

    (And click on every image being generated, as it not enough as is).

    I think that would be a great feature to add in the next version of the plugin.
    At least two of us came across this problem, and I guess many more. It’s just an extra line of code.

    Cheers !

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for sharing the solution with us and explaining the things.

    I have passed this to the concerned dev team to look into it and we will add this after the testing.

    Your help is highly appreciated

Viewing 1 replies (of 1 total)
  • The topic ‘Regarding “cover” dimensions image…’ is closed to new replies.