Hide div within last collection item

Do it with pseudo-classes. Add this custom code in an embed component in the page. Replace .col-item by the class you gave the item, and .divclass by the class of the div you want to hide.

<style>
/* hides element with the .divclass in the last .col-item element of the series */
.col-item:last-child .divclass {display:none}
</style>
3 Likes