I am trying to hide an entire section if/when a dynamic list is in an empty state and need some help. There was a previous post that was helpful but need further clarification. This is the previous topic:
I’ve tried to paste this script that was provided by leozakour into the custom code field although wasn’t sure which field (inside head tag or before /body tag) so I pasted into both. Here’s the script:
<script> ('.w-dyn-empty').parents('.section').each(function(){ (this).hide()}) </script>
It’s not working as is, but expect that I’ve not got things set up correctly. I just need some guidance on using the script properly.
This is the page I’m working on:
http://kbc-website.webflow.io/music
And it’s the ‘Announcements’ section near the top of the page.
Any assistance is much appreciated.
Here is my site Read-Only: https://preview.webflow.com/preview/kbc-website?utm_source=kbc-website&preview=ee631eac59bebf7054145c21d50f3a6b