If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
February 18, 2013 at 10:18 am #20464
I have a slider in a blog post at http://www.freedomsflame.biz/blog/.
The images have different heights. The slider has a cool feature where it adjusts its height to display the full height of each image.
I would like to keep the slider at the same height for each image, even if that means losing some off the top and/or bottom of each image. I’ve gone to the WP Gallery and edited each image to be 450px high. However, my edits don’t seem to be reflected when the slider displays them. The slider still has to change height from image to image.
How can I keep the slider the same height for each image? Thanks in advance for the info.February 18, 2013 at 10:54 am #107733
Kindly open functions.php and find this code:
$avia_config['imgSize']['fullsize'] = array('width'=>930, 'height'=>930, 'crop'=>false); // big images for lightbox and portfolio single entries
and replace it with:
$avia_config['imgSize']['fullsize'] = array('width'=>930, 'height'=>450, 'crop'=>true); // big images for lightbox and portfolio single entries
save it and use Regenerate Thumbnails plugin to regenerate images.
IsmaelFebruary 18, 2013 at 8:24 pm #107734
I hope it’s okay to add to this question.
If I don’t want the images cropped but do want them to be displayed smaller than the default settings, do I just keep the “crop” value set to false?February 19, 2013 at 4:04 pm #107735
Setting crop to false will just have the images adjust proportionally. From the wordpress codex:
False - Soft proportional crop mode ; True - Hard crop mode
The generated thumbnail image will then be called by its name and whatever size was generated will get spit out into that usage. CSS will usually then adjust the image to make it fit the container so that the theme isn’t generating a whole bunch of single use images and instead a handful that can be used for multiple uses.
DevinFebruary 21, 2013 at 8:00 pm #107736
You can remove my post under this topic if you’d like. I figured it out and have posted my solution under a different thread
Thx :)February 22, 2013 at 8:39 am #107737
The topic ‘Crop All Images in Slider to the Same Height?’ is closed to new replies.