Link to home
Start Free TrialLog in
Avatar of tf2012
tf2012

asked on

css question

I have a wordpress page with an h1 in the content body.  And a short code for a paginated gravity forms.. form.  I want to hide the H1 that is in the page content on all form paginated views except the first one.

So I was thinking of checking the dom for the gravity form page 1 (I'll add a class to page one), and if found show the H1, else.. hide it.  Easy enough with javascript.

Is it possible in css to check if a sibling element contains a child element of a particular class?
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial