🔥 Classify 4: A tiny plugin that brings CSS classes and +

Hi there.

Can someone help me understand the use of tempClass and removeClass? There is not much documentation on these and I’ve hit an issue that may be because I should be using one of these.

In my specific case, I’ve successfully used a conditional statement to add a class to some repeating group content. The conditional restricts the application of the Classify class to only the last item in the repeating group.

When the page loads, the Classify class (and associated styling) is applied correctly. However, if you change the data in the repeating group (such as by adding content or changing the data source), the ‘last item’ style is applied to every item (more detail in this thread).

The debugger shows the conditional statement evaluates correctly in each case, but the classify class seems to somehow break free if the RG’s data changes.

If it matters, my CSS style is using :before and :after pseudo-elements.