Tutorial
Intermediate

Hide section in Webflow if no CMS items are present

Add this script to hide a section in Webflow when there are no CMS items present.

Summary:
<style>
[data-cms-section]:not(:has(.w-dyn-item)) { display: none;
}
</style>
Hide section in Webflow if no CMS items are present

Subscribe for updates

Load more