• Hi, I am using WordPress 3.0.Is it possible to apply different style class to wordpress wp_nav_menu()? Currently five pages for me and I would like to apply in following order.

    <ul>
          <h2>
            <li><a href="#">Example1</a> </li>
          </h2>
          <span>
          <li><a href="#">Example2</a></li>
          </span>
          <h4>
            <li><a href="#">Example3</a></li>
          </h4>
          <h3>
            <li><a href="#">Example4</a></li>
          </h3>
          <h5>
            <li><a href="#">Example5</a></li>
          </h5>
    </ul>

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can’t create that output from wp_nav_menu. It’s invalid markup. You can’t have an inline <span></span> element around a block-level <li></li> element.

    Perhaps if you explain what you actually want to accomplish, then somebody can help you out with a good way of achieving it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to apply different style to WordPress wp_nav_menu()’ is closed to new replies.