Hi
How can I set Ajax Portfolio Preview to display portrait orientation images in full?
Currently portrait orientation images are displayed cropped in the preview window
Thank you
Hey Yory!
What happens then you change lines 166 – 167 in /enfold/config-templatebuilder/avia-shortcodes/gallery.php from this.
'lightbox_size' => 'large',
'preview_size' => 'portfolio',
To this?
'lightbox_size' => 'full',
'preview_size' => 'full',
Cheers!
Elliott
Hi Eliott
I changed the code as you have suggested but it had no effect on th eway Portrait images are displayed in the preview window
I now reverted the code back to
‘lightbox_size’ => ‘large’,
‘preview_size’ => ‘portfolio’,
Hey!
In the same file try changing lines 203 – 204 from this.
$img = wp_get_attachment_image_src($attachment->ID, $thumb_size);
$prev = wp_get_attachment_image_src($attachment->ID, $preview_size);
To this.
$img = wp_get_attachment_image_src($attachment->ID, 'full');
$prev = wp_get_attachment_image_src($attachment->ID, 'full');
And leave the edit in place so we can check your site.
Cheers!
Elliott