More CSS class info in Pages widget would be very helpful.

  • Unknown's avatar

    I’m trying to implement a hierarchical menu system. The additional information I’d like to see in the Pages widget – not necessarily the current widget but an improved one:

    1. A class id for the enclosing

      , e.g. <ul class=”pages_widget”>

      2. A class id for the page that is currently being viewed, e.g. <li class=”page_393 page_selected”>

      3. A class id for a page whose descendant is currently being viewed, e.g. <li class=”page_399 page_descendant_selected”>

      4. A class id for the

      of every sublist whose nth-generation parent is being viewed, e.g. <ul class=”parent_1_selected”>

      5. An additional top-level list element for the blog section, which could default to hidden, e.g. <li class=”page_hidden”>Blog

      I’m willing to be a guinea pig for such a feature.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Sorry, I forgot my markup would be interpreted. Here’s what I was trying to say:

    <p>I’m trying to implement a hierarchical menu system. The additional information I’d like to see in the Pages widget – not necessarily the current widget but an improved one:</p>
    <p>1. A class id for the enclosing

      , e.g. <ul class=”pages_widget”></p>
      <p>2. A class id for the page that is currently being viewed, e.g. <li class=”page_393 page_selected”></p>
      <p>3. A class id for a page whose descendant is currently being viewed, e.g. <li class=”page_399 page_descendant_selected”></p>
      <p>4. A class id for the
      of every sublist whose nth-generation parent is being viewed, e.g. <ul class=”parent_1_selected”></p>
      <p>5. An additional top-level list element for the blog section, which could default to hidden, e.g. <li class=”page_hidden”>Blog</p>
      <p>I’m willing to be a guinea pig for such a feature.
  • Unknown's avatar

    Bump, and a question. How realistic is it to expect something like this to be implemented? I could definitely understand how WordPress.com would prefer to deliver static widget HTML to boost their performance, but I’m hoping the answer is at least a firm “maybe”.

  • Unknown's avatar

    Sandbox does offer more classes for parent and child pages.

  • The topic ‘More CSS class info in Pages widget would be very helpful.’ is closed to new replies.