Support » Fixing WordPress » wp_list_pages remove the li

  • Hi all –

    I’m new to Word Press but already enjoying the custom features of it. My question is how do I modify the wp_list_pages to not give a list of the pages prefixing them all with <li class="page_item...">

    I essentially want to replace:

    <li class="page_item page-item-2"><a href="http://server1/site2/?page_id=2" title="About">About</a></li>
    <li class="page_item page-item-3"><a href="http://server1/site2/?page_id=3" title="Contact Us">Contact Us</a></li>


    <div class="mydiv"><a href="http://server1/site2/?page_id=2" class="myhrefclass" title="About">About</a></div>
    <div class="mydiv"><a href="http://server1/site2/?page_id=3" class="myhrefclass" title="Contact Us">Contact Us</a></div>

    Any idea on how to do this?

Viewing 1 replies (of 1 total)
  • You cannot, unless you make your own function/plugin for that.

    What’s wrong with the li? Having their own classes you can style them in whichever way you want…

Viewing 1 replies (of 1 total)
  • The topic ‘wp_list_pages remove the li’ is closed to new replies.