Home › Forums › Add-ons › Gallery Field › Control over Gallery Image Sizes
Hi Elliot,
I recently purchased the Gallery Add On, the Repeater add on, and the Options add on.
I’ve been experimenting with all the examples – but can’t seem to accomplish what I want.
I would like to make a simple gallery, but have fine-tooth control over the size output.
What method do you recommend to use to be able to have control over each picture in a gallery’s size.
Thanks in advance!
Hi @mjkessel
It all depends on what you mean by control over each picture in a gallery’s size.
Please be specific, and I can give you my recommendation
Thanks
E
Thank you for your quick response.
I was trying to emulate something like on this site:
http://thereason.us/
using a combination of the gallery add-on and jquery masonry.
Please let me know if you have any recommendations.
PS – I love your plug ins!
Hi @mjkessel
Thanks for the link. It will be hard to replicate this functionality using the gallery field due to the lack of a ‘size’ field for each image.
However, it is possible to add another field group for all images (location rule = attachments) and you could add a ‘masonry_size’ select field.
Now in your gallery field, you can edit each image and specify the size.
Then in your template, just load in the selected size via this tutorial:
http://www.advancedcustomfields.com/resources/how-to/how-to-get-values-from-a-media-attachment/
The only limitation of this is that each image can only every have 1 size. So if you reuse the same image on 2 pages, they can’t use different sizes.
Your other option is to use the repeater field and add 2 sub fields (image, masonry_size)
Thanks
E
Thank you for your quick response – I will try those methods – and thanks again for making such an awesome plug in!
The topic ‘Control over Gallery Image Sizes’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.