WordPress.org

Ready to get started?Download WordPress

Forums

Adding active class to current taxonomy custom menu (1 post)

  1. peterbra
    Member
    Posted 2 years ago #

    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>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.