• Is there a way to add menu classes to a list so that the list shows the current-menu-item class when active? or any way to add them?

    It’s just a list of category links. I wasn’t able to use wp_list_categories

Viewing 2 replies - 1 through 2 (of 2 total)
  • What does the code for generating the list look like?

    Thread Starter powerj

    (@powerj)

    <ul class="category-menu menu">
            <li class="button menu-item"><a href="<?php echo esc_url( $url ) . '/staff/' . $dpt;?>" title="Show All">Show All</a></li>
            <li class="button menu-item"><a href="<?php echo esc_url( $url ) . '/staff/' . $dpt .'/?offices=loc4&departments=' . $dpt;?>" >Loc4</a></li>
            <li class="button menu-item"><a href="<?php echo esc_url( $url ) . '/staff/' . $dpt .'/?offices=loc3&departments=' . $dpt;?>" >Loc3</a></li>
            <li class="button menu-item"><a href="<?php echo esc_url( $url ) . '/staff/' . $dpt .'/?offices=loc2&departments=' . $dpt;?>" >Loc2</a></li>
            <li class="button menu-item"><a href="<?php echo esc_url( $url ) . '/staff/' . $dpt .'/?offices=loc1&departments=' . $dpt;?>" >Loc1</a></li>
    </ul>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add menu classes to a list’ is closed to new replies.