Hide Section if Child CMS Collection is Empty in Webflow [Snippet] <> No-Code Supply Co.

Hide Section if Child CMS Collection is Empty in Webflow

Hide Section if Child CMS Collection is Empty in Webflow
/* Give section an attribute of "data-cms-section" */
[data-cms-section]:not(:has(.w-dyn-item)) {
display: none;
}

Use this simple CSS snippet and an attribute on any static section you want to be hidden if it contains a CMS collection list which is empty.

Industries

Have feedback or a question related to this item? Drop us some feedback!

Curated: 
4.2.24

Similar items

Stera Global

7.2.24

Guy Powell

7.2.24

Tiny Startups

6.28.24

Ethos

6.28.24

Passage

6.28.24
Featured
Preview

Osmo

View item

Today in Design

6.28.24

Figma Plugins

6.26.24

Oddit

6.26.24

TED Fellows

6.25.24

Scroll to accordion on open

6.25.24

Sonar Music

6.25.24

Translatable Project

6.25.24

BCG Platinion

6.24.24

All The Rage by Memberstack

6.24.24

Manuel Ogomigo

6.24.24

Studio Few

6.20.24

Mac Media

6.19.24

Toil

6.17.24

Invoke

6.17.24

molly

6.17.24

Quin

6.17.24

Unfold

6.14.24

Crymbo

6.14.24

Kabata

6.14.24

Buildspace

6.14.24
Load more

Bummer, no results

Try a different search/filter combo, or drop us some feedback if there is something missing you would love to see!

Reset filters

Subscribe for updates

Get updates on the latest curated resources and be the first to hear of new features.