Assign Children of a Page specific class.
-
Hej,
I’m using list_pages to output a list of all my parent and children pages, which works nicely. But I want to make a toggle function, so when you click the parent the children will either show or hide, this works somewhat ok, but would be much smoother if I could assign all children a class of .child and every parent a class of .parent, by default they’re all have the class page-item, whether they’re a parent or a child..
Any Ideas on how doing that?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Assign Children of a Page specific class.’ is closed to new replies.