wp_nav_menu and pagination (1 post)

  1. wwdboer
    Posted 6 years ago #

    I'm using wp_nav_menu() to create the menu on my website. On the home page, let's say http://www.mysite.com, the menu-item with the URL to the home page gets the current-menu-item class.

    I'd also like to give this home menu-item the current-menu-item class on the other pages, for example http://www.mysite.com/page/2/.

    Is it possible to tell wordpress to give the current-menu-item class to a menu item if the URL matches the requested URL + [page/][any number/] ?

Topic Closed

This topic has been closed to new replies.

About this Topic