PHP Developers Network
http://forums.devnetwork.net/

Can CSS hide the second entry of same class?
http://forums.devnetwork.net/viewtopic.php?f=68&t=147860
Page 1 of 1

Author:  simonmlewis [ Mon Sep 10, 2018 4:33 pm ]
Post subject:  Can CSS hide the second entry of same class?

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.

Author:  thinsoldier [ Tue Sep 11, 2018 7:03 pm ]
Post subject:  Re: Can CSS hide the second entry of same class?

https://developer.mozilla.org/en-US/doc ... :nth-child

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/