Hello,
I’m using the Fullwidth Easy Slider and am trying to use a custom size (height).
I have registered my custom thumbnail size in the child theme, and it is appearing as a choice under “Slideshow Image and Video Size”. When I choose that size it works perfect for images, however it will not crop videos. The videos end up at their full height and the images at my custom size.
For the video slide content I have it set to stretch and be cropped top and bottom.
How can I register my custom thumbnail size to also properly crop the video at that same size.
When I choose 1500×430 or 1500×630, it works as intended. But my custom size of 1500×500 doesn’t work on the video.
Any ideas on a fix? or a function I can add to child theme?
Thanks for your help.
Hey jberg1,
Thank you for the inquiry.
The Slideshow Image and Video Size settings will only affect the video if the video slides’ Styling > Video Size is not set to the first option, and this option will only affect the aspect ratio of the video and its height calculation. If it is set to the first option, the aspect ratio of the video will be set to 16:9 by default.
This is the calculation of the slider height
$stretch_height = ceil( $viewport / ( $video_ratio[0] / $video_ratio[1] ) * 100 );
The value of the $viewport is based on the width of the selected thumbnail in the Slideshow Image and Video Size divided by its height while the $video_ratio is based on the Video Aspect Ratio settings.
Best regards,
Ismael