PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Thu Sep 20, 2018 10:35 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon Sep 10, 2018 4:33 pm 
Offline
DevNet Master

Joined: Wed Oct 08, 2008 3:39 pm
Posts: 4422
Location: United Kingdom
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.

_________________
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.


Top
 Profile  
 
PostPosted: Tue Sep 11, 2018 7:03 pm 
Offline
Forum Contributor

Joined: Fri Jul 20, 2007 11:29 am
Posts: 366
https://developer.mozilla.org/en-US/doc ... :nth-child

_________________
Warning: I have no idea what I'm talking about.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group