WordPress.org

Ready to get started?Download WordPress

Forums

Drop Down Menu on Twentyten Theme (6 posts)

  1. jawaune
    Member
    Posted 2 years ago #

    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?

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    See Navigation_Menus. The rest is just CSS.

  3. jawaune
    Member
    Posted 2 years ago #

    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.

  4. alchymyth
    Forum Moderator
    Posted 2 years ago #

    http://codex.wordpress.org/Navigation_Menus#Display_Menus_on_Theme

    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' ),
    	) );
  5. jawaune
    Member
    Posted 2 years ago #

    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...

  6. oneklc
    Member
    Posted 2 years ago #

    If you have a solution why not post it?

Topic Closed

This topic has been closed to new replies.

About this Topic