Conditional Visibility for ACF Photo Gallery Section

Hi Themeco heros!

I’m working on a location page template in Cornerstone and using an ACF Gallery field (location_images) to populate an Image Gallery Carousel Slider element with photos. The gallery displays perfectly when images are uploaded, but when no photos are added (e.g., for a new location like Trinidad), the section still shows up as an empty carousel with navigation buttons visible. I’d like to create a condition to hide the entire gallery section—including the navigation—if the ACF Gallery field is empty.

I’ve set up the Looper with {{dc:acf:post_field field=“location_images”}} and {{dc:looper:field key=“url”}} for the slider, but I can’t find a built-in conditional visibility option in Cornerstone to check if the gallery has no images. Is there a way to add a rule (e.g., “is empty” or “has no value”) to hide the section based on the ACF field? Or could I use a shortcode or PHP snippet to achieve this?

Any guidance, examples, or tips would be hugely appreciated. Thanks for being awesome!

Best regards

Hello @artistn8,

Thanks for writing in!

You can set up the Looper Provider Dynamic Content “{{dc:acf:post_field field=“location_images”}}” in the Section element so that you can then add the Section element condition Provider Output IS NOT Empty.

Hope this makes sense.