Forums

WP-dTree
Hierarchy in wp-dtree (2 posts)

  1. kiper
    Member
    Posted 1 year ago #

    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

  2. kiper
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic