WordPress.org

Ready to get started?Download WordPress

Forums

Displaying pages in my navigation without using a list (2 posts)

  1. timothyduddy
    Member
    Posted 1 year ago #

    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>
  2. timothyduddy
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic