WordPress.org

Support

Support » Themes and Templates » Displaying pages in my navigation without using a list

Displaying pages in my navigation without using a list

  • for the theme i am working on i don’t want my navigation displayed inside of a ul or li tag. I just want it as follows but i cant figure out how to do this with the wp_list_page. Below is how i want it.

    <nav>
    				<a href="#" class="current">Home</a>
    				<a href="#">About</a>
    				<a href="#">Services</a>
    				<a href="#">Products</a>
    				<a href="#">Contact</a>
    		</nav>
Viewing 1 replies (of 1 total)
  • sorry if i’m not being clear but i just want wordpress to generate my list of pages without a ul or li. so in my theme it would look like this

    <nav>
    <?php wp_list_pages(' dont know what to put here ');?>
    </nav>

    the css i am using doesn’t need the ul or li tags so i dont want wordpress to automatically generate them.

Viewing 1 replies (of 1 total)
  • The topic ‘Displaying pages in my navigation without using a list’ is closed to new replies.
Skip to toolbar