Support » Themes and Templates » nav menu theme with css current page selected – 07.20.12

  • Hello All,

    I have a navigation menu that I created in wordpress. It shows up on each page and the navigation works well taking me to all my pages.

    I have a special CSS style for showing the selected / current page for the visitor the page they are currently on.

    I wanted to know the best way I can get this to work in wordpress.


Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael


    Forum Moderator

    if you are using wp_nav_menu() then this will output ‘.current…’ css classes:

    Hello alchymyth,

    Thank you for your help… I very much appreciate it.
    This is the code in my functions.php that I’m using to power my menus.

    How would I integrate or use new a php code to get my selected / current page to show? What do you suggest?

       function register_custom_menu(){
       register_nav_menu('custom_menu',__('Custom Menu'));
      //Footer Navigation
       function register_custom_foot_menu(){
       register_nav_menu('custom_foot_menu',__('Custom Footer Menu'));


    There should be a current-menu-item class added the list item, you can use that to add styles.

    Edit: Oops, alchymyth already the question. Use css, not php in this case man.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘nav menu theme with css current page selected – 07.20.12’ is closed to new replies.