CSS menu (open cube) (2 posts)

  1. twlack
    Posted 6 years ago #

    I'm relatively new to WP. About 2 years ago I purchased a site license for Quick Menus from opencube.com 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="http://culinarytraveler.com/about/" title="About">About</a></li>
    <li class="page_item page-item-7 current_page_item"><a href="http://culinarytraveler.com/portfolio/" title="Portfolio">Portfolio</a></li>
       <a href="http://culinarytraveler.com/portfolio-child/" title="Portfolio">Portfolio Child</a></li>
    <li class="page_item page-item-19"><a href="http://culinarytraveler.com/contact/" title="Contact">Contact</a></li>

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

    <div style="width:220px;">
    <a href="http://culinarytraveler.com/about/" title="About">About</a>
    <a href="http://culinarytraveler.com/portfolio/" title="Portfolio">Portfolio</a>
      <div style="width:200px;">
       <a href="http://culinarytraveler.com/portfolio-child/" title="Portfolio">Portfolio Child</a>
    <a href="http://culinarytraveler.com/contact/" 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.

  2. esmi
    Forum Moderator
    Posted 6 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic