Can CSS hide the second entry of same class?
Posted: Mon Sep 10, 2018 4:33 pm
We have a bit of an issue with a Wordpress Plugin, whereby on variable products it seems to add two DIVs with the same class IDs twice. So it adds it before the In Stock, and again after the In Stock.
If you select the checkboxes within the DIVs and submit, the additional products within them do post fine.
We just want rid of the second set - the 'duplicate'.
I wondered if there was a way in CSS to identify the second entry of the same DIV and then assign Display: none to it.
If you select the checkboxes within the DIVs and submit, the additional products within them do post fine.
We just want rid of the second set - the 'duplicate'.
I wondered if there was a way in CSS to identify the second entry of the same DIV and then assign Display: none to it.