How to add static content/ads into CMS collection list?


I would like to add a static content/Google Adsense into the CMS collection list (Grid) and I’m wondering if this can be achieved in Webflow.

Example site: The ads are randomly showing up in the grid and I would like to achieve the same thing for CMS collection list.

Does anyone have any idea about this?

You would have to write custom code to do this.

I was looking for a way to do something similar, so I wrote a quick script to achieve this effect without changing much. The approach looks like this: