• I was attempting to style wp-dtree when I suddenly realised that there is no semantic hiearchy. No matter if a node is parent or child it still has the same class and is at the same level as every other node in the hierarchy!
    So, since the structure is faulty there is no way to style parent and child nodes differently except by id!
    Would this be possible to resolve in an update and preferably with nested lists (

    • )?

    Best Wishes

    Kiper

Viewing 1 replies (of 1 total)
  • Thread Starter kiper

    (@kiper)

    Ok, I found a solution to this. The wp-dtree is encased in a div with class=”clip”. All child nodes are encased in a div with class=”clip” as well. So you can style all child nodes by referencing them like this: .clip .clip a

    Posting it for future reference. But I think it would be better if wp-dtree could use a more semantic hieararchy like unordered lists.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP-dTree] Hierarchy in wp-dtree’ is closed to new replies.