Show Random CMS Item Every Page Refresh?

Of course!

It looks like you need to change your styles in the <head> tag a bit:

<style>
  .testimonial-item {display:none}
  .testimonial-item.show {
    display: block;
  }
</style>

I’d also recommend not limiting the collection to a single item as the video shows initially. I believe Webflow only randomizes the list order when you republish, so it’s technically only able to add the .show class on a single item part of the time. While it’s not visible at all, it does sometimes render the correct combo class—just with incorrect syntax:

1 Like