Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #391165

    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

    #392163

    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

    • This reply was modified 9 years, 8 months ago by Elliott.
    #392702

    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’,

    #393782

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.