aadvark's dropdown menu...

aadvark's dropdown menu...

by Kjellbjørn Fossheim -
Number of replies: 1

Hi.

Is there a way to show subitems to the items under the menu?

Example: Item 1

             Item 2

                        Subitem 2.1

                        Subitem 2.2

             Item 3

-KF-

Average of ratings: -
In reply to Kjellbjørn Fossheim

Re: aadvark's dropdown menu...

by Chris Scurrah -

To add sub menu item headings to a Menu Heading, try changing the code to the following (The changed code is in bold):-

 <li><div><a href=http://www.your-website.com/>Menu 1</a>
     
        <ul>

        <h4>Sub Menu 1</h4>

        <?php

 $text ='<li><a href="http://www.your-website.com/item1.htm">Item 1</a></li>';
 $text .='<li><a href="http://www.your-website.com/item2.htm">Item 2</a></li>';
 echo $text;

?>

<p></p>
<br>    

        <h4>Sub Menu 2</h4>

        <?php

 $text ='<li><a href="http://www.your-website.com/item3.htm">Item 3</a></li>';
 $text .='<li><a href="http://www.your-website.com/item4.htm">Item 4</a></li>';
 $text .='<li><a href="http://www.your-website.com/item5.htm">Item 5</a></li>';
 
 echo $text;
?>

           </ul></div></li>