WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Custom menu in Twentyten footer horizontally (4 posts)

  1. jukooz
    Member
    Posted 3 years ago #

    Hello,

    I'm using Twentyten theme (particurarly 2010 Weaver which is modification of Twentyten to make it more customizable). This theme has already few Footer Widget Areas where I can put my custom menu but they are all columns - menu is vertical in the footer. How can I make my custom menu (simple - not dropdown) to have it vertical and centered in my footer?

    I don't know too much about coding (don't know anything :D ) so please make it as simple as it is possible.

    I think the best idea would be to make one more Footer Widget Area that would be horizontal, centered and above Footer Widget Areas that are there already (so one could use them as well if he wanted to). But that is only my guess and this isn't important for me at the moment.

    That's my first post here by the way :)

  2. davidshq
    Member
    Posted 3 years ago #

    ::bump:: I'd love to know how to accomplish this as well!
    Dave.

  3. davidshq
    Member
    Posted 3 years ago #

    Okay, I accomplished this - here is how I did it:
    1. Edit the register_nav_menus in(Appearance-->Editor) the function.php ("Theme Functions") file:

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

    2. Create a menu (Appearance-->Menus) and set Secondary Navigation to that menu.
    3. Add the following immediately after <!-- #main --> in footer.php ("Footer"):

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

    Dave.

  4. jukooz
    Member
    Posted 3 years ago #

    Thank for reply.

    I am now using Atahualpa and accomplished it in a lot easier way that will probably also work in TwentyTen. I am using a plugin Dropdown Menu Widget where You can simply choose it to be horizontal.

Topic Closed

This topic has been closed to new replies.

About this Topic