Support » Plugins » Vertical expanding menu, highlights current section

  • I’ve done a ton of searching and can’t seem to find what I am looking for. I have a huge site that I am converting to WordPress where several pages are 3 levels deep. I want to bring the user to a main section (say…Services), where there will be several subsections that show up on the side. I have this taken care of using Spry and it works fine.

    My issue is, there are also a few secondary pages that also have subsections. Here is what I want…

    The subsections on the side will extend vertically to show THEIR subsections underneath, and when one is selected it will remain highlighted when brought to that page.

    I am pulling my hair out trying to find this and have a fairly strong grasp of CSS, Spry, etc… If anyone can point me in the right direction they would have my deepest gratitude. I actually asked about this a little while ago, and someone commented “you can do this with CSS” and left it at that. Don’t be that guy.

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

    (@pantone204)

    I’ve actually gotten closer with the following..

    <?php
    $output = wp_list_pages(‘echo=0&depth=1&title_li=<h2>Top Level Pages </h2>’ );
    if (is_page( )) {
    $page = $post->ID;
    if ($post->post_parent) {
    $page = $post->post_parent;
    }
    $children=wp_list_pages( ‘echo=0&child_of=’ . $page . ‘&title_li=’ );
    if ($children) {
    $output = wp_list_pages (‘echo=0&child_of=’ . $page . ‘&title_li=<h2>Child Pages</h2>’);
    }
    }
    echo $output;
    ?>

    The only problem now, is when I hit the grandchild level, the children above are removed. I still want to see those.

    Any thoughts?

Viewing 1 replies (of 1 total)
  • The topic ‘Vertical expanding menu, highlights current section’ is closed to new replies.