Regarding “cover” dimensions image…
-
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 !
- The topic ‘Regarding “cover” dimensions image…’ is closed to new replies.