Support » Plugins » Adding dynamic subnav class

  • Anyone know how I can modify the standard WP nav:

    <?php wp_list_pages(‘sort_column=menu_order&title_li=&depth=2’); ?>

    So that it outputs a class on any sub pages?

    At the moment I get this:

    <ul id=”nav”>

    • <ah href=”#”>Link
    • <ah href=”#”>Link
    • <ah href=”#”>Link
    • <ah href=”#”>Link
    • I just want to add a class of subnav to the second level ul but I can’t find out how to do it without hardcoding a nav. Any ideas folks?

      Cheers,

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Adding dynamic subnav class’ is closed to new replies.