Support » Plugins » CSS menu (open cube)

  • I’m relatively new to WP. About 2 years ago I purchased a site license for Quick Menus from and I’m very happy with it.

    I’d like to have WP menus work the Quick Menus drop downs. What I need seems pretty simple, here it is:

    This line in my theme:

    <?php wp_list_pages('sort_column=menu_order&title_li='); ?>

    Sends this to the browser:

    <li class="page_item page-item-2"><a href="" title="About">About</a></li>
    <li class="page_item page-item-7 current_page_item"><a href="" title="Portfolio">Portfolio</a></li>
       <a href="" title="Portfolio">Portfolio Child</a></li>
    <li class="page_item page-item-19"><a href="" title="Contact">Contact</a></li>

    But I need the list to be output as <div>:

    <div style="width:220px;">
    <a href="" title="About">About</a>
    <a href="" title="Portfolio">Portfolio</a>
      <div style="width:200px;">
       <a href="" title="Portfolio">Portfolio Child</a>
    <a href="" title="Contact">Contact</a>

    Where would I begin to look for this formatting? Is it different with each theme or is this WP coding?


    P.S. this is the first time I tried to enter code in this forum, if it doesn’t show right I’ll post this again.

Viewing 1 replies (of 1 total)
  • esmi


    Forum Moderator

    wp_list_pages is a native WP template tag. You might want to look at building your own page menu using get_pages instead.

Viewing 1 replies (of 1 total)
  • The topic ‘CSS menu (open cube)’ is closed to new replies.