WordPress.org

Ready to get started?Download WordPress

Forums

How do i format the output of wp menu nav. (1 post)

  1. ChrisL88
    Member
    Posted 2 years ago #

    I'm using the toolbox theme by automatic and the output of wp menu nav is a single line of code. Like this:

    <div class="menu"><ul><li><a href="">Home</a></li><li><a href="">About</a></li><li><a href="">Contact</a></li></ul></div>

    My question is, how to i insert breaks and spaces into this? I'd like to clean it up a bit. Like:

    <div class="menu">
    <ul>
    <li><a href="">Home</a></li>
    <li><a href="">About</a></li>
    <li><a href="">Contact</a></li>
    </ul>
    </div>

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic