Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Clique › Increasing width of images in gallery
New Landing › How can we help? › Themeforest Theme Support › Clique › Increasing width of images in gallery
- This topic has 11 replies, 2 voices, and was last updated 10 years by Swift Ideas – Ed.
-
Posted in: Clique
-
March 3, 2014 at 8:12 am #53331
Hi,
Is there a way to increase the width of images in the gallery section?
My images are quite wide and hence appear smaller that I would like them to be.Ref link: http://irisbrandworks.com/?page_id=1309
Thanks
SunalMarch 3, 2014 at 2:54 pm #53589Hi Sunal,
This is controlled by the jQuery, as the columns are calculated based on the width of the screen. Give this a try. Try editing /js/functions.js.php line 441 from:
return windowWidth >= 380 && windowWidth < 480 ? itemColumns = 2 : windowWidth >= 480 && windowWidth < 768 ? itemColumns = 2 : windowWidth >= 768 && windowWidth < 1160 ? itemColumns = 3 : windowWidth >= 1160 && windowWidth < 1640 ? itemColumns = 4 : windowWidth >= 1640 && windowWidth < 2100 ? itemColumns = 5 : windowWidth >= 2100 && (itemColumns = 6), itemColumns;
to
return windowWidth >= 380 && windowWidth < 480 ? itemColumns = 2 : windowWidth >= 480 && windowWidth < 768 ? itemColumns = 2 : windowWidth >= 768 && windowWidth < 1160 ? itemColumns = 2 : windowWidth >= 1160 && windowWidth < 1640 ? itemColumns = 2 : windowWidth >= 1640 && windowWidth < 2100 ? itemColumns = 3 : windowWidth >= 2100 && (itemColumns = 4), itemColumns;
Hope that helps.
– Ed
March 3, 2014 at 4:25 pm #53630Hi Ed,
This changed the image size of the portfolio thumbnails. Although your reply would be helpful for future customization, my current query is still unresolved.
I’d like the width size of the open image in the gallery section/template to increase and not the thumbnails. Is this possible? Attached is a screenshot for your reference.
Ref Link:
http://irisbrandworks.com/?page_id=1309Thanks,
SunalMarch 4, 2014 at 11:27 am #53896Hi Sunal,
Try changing /includes/sf-functions.php lines 239/240 to:
$thumb_lightbox_thumb = rwmb_meta( 'sf_thumbnail_image', 'type=image&size=full' ); $thumb_lightbox_image = rwmb_meta( 'sf_thumbnail_link_image', 'type=image&size=full' );
– Ed
March 4, 2014 at 1:30 pm #53948Hi Ed,
That did not work.
Does the answer lie in the highlighted area on the attached reference image? If so, could you let me know what I should do.Thanks for your prompt responses thus far. Appreciate it.
Regards,
SunalMarch 4, 2014 at 2:01 pm #53967Hi Sunal,
The lightbox image size is in a different file – check the path in my comment.
– Ed
March 4, 2014 at 3:23 pm #54038Hi Ed,
Yes, I did try that earlier but it had no effect on the size of the image.
It was originally:
$thumb_lightbox_thumb = rwmb_meta( ‘sf_thumbnail_image’, ‘type=image&size=large’ );
$thumb_lightbox_image = rwmb_meta( ‘sf_thumbnail_link_image’, ‘type=image&size=large’ );Reference screenshot attached.
Regards
SunalMarch 4, 2014 at 3:29 pm #54042What’s the size of the original images?
– Ed
March 4, 2014 at 3:33 pm #54048Hi Ed,
Most of them are 1164px X 656px except for the ones that have a vertical orientation.
Sample attached.
Sunal
March 4, 2014 at 4:27 pm #54082Sorry, didn’t see you were using the gallery page. Try editing template-gallery.php line 10 to:
$gallery_images = rwmb_meta( 'sf_gallery_images', 'type=image&size=large' );
– Ed
March 4, 2014 at 4:59 pm #54112That did it!
Thanks so much!
Regards
SunalMarch 4, 2014 at 5:45 pm #54128Perfect 🙂
– Ed
-
Posted in: Clique
You must be logged in and have valid license to reply to this topic.