• roboonl

    (@roboonl)


    Hi all,

    I’m currently trying to make my menu expandable using Javascript, but i can’t really figure out how to. I’m currently using the wp_list_pages function with a depth=0, witch results in the following html:

    <ul>
    	<li><a href="#">Normal item</a></li>
    	<li><a href="#">Item with sub</a>
    		<ul>
    			<li><a href="#">Sub item</a></li>
    		</ul>
    	</li>
    </ul>

    I know all the HTML/CSS but was wondering if there’s any javascript to use for this?

    Thanks in advance, kind regards,

    Robin

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Creating an expandable menu’ is closed to new replies.