WordPress.org

Support

Support » How-To and Troubleshooting » Adding active class to current taxonomy custom menu

Adding active class to current taxonomy custom menu

  • peterbra

    @peterbra

    Hi,
    I’m listing custom taxonomy in menu (from WP ECOMMERCE) and I don’t know how to force WP to add a “current” class to current menu item (I am using custom menus)

    <ul class="menu" id="menu-main-menu">
    <li class="menu-item menu-item-type-taxonomy menu-item-object-wpsc_product_category menu-item-38" id="menu-item-38"><a href="http://mysite.com/?wpsc_product_category=spearguns">Spearguns</a></li>
    <li class="menu-item menu-item-type-taxonomy menu-item-object-wpsc_product_category menu-item-34" id="menu-item-34"><a href="http://mysite.com/?wpsc_product_category=accessories">Accessories</a></li>
    ...ETC...
    </ul>
  • The topic ‘Adding active class to current taxonomy custom menu’ is closed to new replies.
Skip to toolbar