wp_list_pages & custom classes for navigation menu (3 posts)

  1. 3stripe
    Posted 10 years ago #

    Is there anyway I can use in wp_list_pages in conjuction with an image based navigation menu? (The actual li text is hidden, and replaced with an image)

    For the moment, my hand generated nav.php menu looks something like the below. But this means I can't have current_page_item included for the current page, as you can when using wp_list_pages.

    So... is there any way to modify wp_list_pages so that it includes my classes (n-home,n-products, etc) and highlights the current page?

    Or is there an easier way to do this?

    <li class="n-home"><a href="/home/" title="Home">Home</a></li>
    <li class="n-products"><a href="/products/" title="Products">Products</a></li>

  2. 3stripe
    Posted 10 years ago #

    Well, it looks like http://www.adsworth.info/wp-pagesnav is going to get me pretty close to where I need to be...

  3. 3stripe
    Posted 10 years ago #

    No-one seems to be reading this forum these days... a year ago this post would get a couple of answers at least.... anyone here ?!?!?!

Topic Closed

This topic has been closed to new replies.

About this Topic