Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author wlindley

    (@wlindley)

    By assigning a class or id to an enclosing <div> or other element, you can use any desired CSS to achieve dropdowns — that’s not really something the plugin itself can do.

    Thread Starter peckjon

    (@peckjon)

    A plugin can insert CSS, or better yet, provide two different views (one as a LIST, one as a SELECT) and hide the right one at the right time via CSS.

    Could a developer/user of this plugin write the CSS? Yes. But many users aren’t familiar with writing CSS, and even for those who are, the whole point of using Plugins is that the user doesn’t have to write any code.

    Plugin Author wlindley

    (@wlindley)

    Presently this plugin uses WordPress’s built-in “walker” functions to build the actual hierarchical tree output. Changing to select elements would require a complete rewrite of this plugin. And it would be nearly impossible for this, or any, plugin to do fancy CSS stuff without conflicting with most themes. At least that is my understanding; I would eagerly hope to be proven wrong, if there’s a good counterexample.

    Walker functions: Technical detail: in wp/includes/post-template.php, the function wp_list_pages() in turn calls walk_page_tree() which uses the built-in Walker_Page class. All those functions only know how to output nested list items.

    Wlindley…. think you’ve done a great job here and it works really well responsively, and otherwise, for what I wanted to achieve, so thanks!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Feature request: responsive layout’ is closed to new replies.