Support » Fixing WordPress » Drop Down Menu on Twentyten Theme

  • Hello everyone, I’ve created my own theme and the only thing missing is one of those navigation dropdown menues you see on all the modern sites including the twentyten theme. However I don’t know much javascript so I was just going to steel the twentyten code. But I can’t seem to find it. There is no js folder on the twentyten theme. Can someone tell me where it’s located and how to properly implement the javascript?

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi


    Forum Moderator

    See Navigation_Menus. The rest is just CSS.

    I clicked on the link that you provided but this does not answer my question. I am not having having problems registering the navigation menues. What I am having trouble with is creating one of those on mouse over drop down menu affects. In other words. Making the secondary menu options appear and disappear when a user hovers his mouse on and off the main menu bar. What I would like to do is locate the code in the twentyten theme that makes that affect happen and steal it for myself. The link that you provided just taught how to properly register the menues.



    Forum Moderator

    you’ll find the ‘wp_nav_menu()’ code in header.php of Twenty Ten:

    <div id="access" role="navigation">
    				<?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
    			</div><!-- #access -->

    and the menu styling in style.css – the section titled /* =Menu

    and this in functions.php:

    // This theme uses wp_nav_menu() in one location.
    	register_nav_menus( array(
    		'primary' => __( 'Primary Navigation', 'twentyten' ),
    	) );

    All of this I already knew. it still doesn’t answer my question. I know where and now wp_nav_menu works as well as how all the arguents work, and how to register it in functions.php. Who doesn’t know that? What I was trying to do is figure out how to make the physical affect happen on mouse over.

    Anyway, I figured it out on my own. I went to youtube and found some tutorials and now my site is working the way it’s supposed to. Tyanks anyway guys…

    If you have a solution why not post it?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Drop Down Menu on Twentyten Theme’ is closed to new replies.