Solve "No ACF gallery field data found" when the gallery field is empty with Oxygen conditionals

Author: Aleš Sýkora, 11. 3. 2021

If you want to hide the gallery field, when your ACF gallery is empty, use this tutorial! 🙂

  1. Wrap Gallery with DIV and add class .gallery-wrapper (set the width of div to 100%)
  2. Open conditionals on the
  3. Create conditional: Dynamic Data > Advance Custom Field > Your Gallery Field Name
  4. Output type - leave empty
  5. Set conditional rule to "is_not_blank"

Done 🙂