• Using TwentyEleven theme, which comes with only one menu.

    I want a secondary menu, which I have successfully added by making a child theme and adding this code to the functions.php:

    <?php
    add_action( ‘init’, ‘my_custom_menus’ );
    function my_custom_menus() {
    register_nav_menus(
    array(
    ‘secondary-menu’ => __( ‘Secondary Menu’ )
    )
    );
    }
    ?>

    and this to the header:

    <?php wp_nav_menu (array(‘theme_location’ => ‘secondary-menu’,’menu_class’ => ‘nav2’));?>

    It worked great, and now I have a secondary header option in the Admin Panel as well as a functioning secondary menu on my site. However, it looks terrible.

    From this point on I’m stuck. The new menu is a bulleted vertical list, and of course I want it styled like the original horizontal with dropdowns. I’ve tried everything I can think of, including copying the styling from the original, but nothing is working. I realize I’m probably missing something simple but need help.

    I do not know css and I’ve tried a few tutorials but all that’s doing is muddying the waters further. I’m frustrated!

    Thanks in advance for anyone who would like to take this on.

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Need help styling secondary menu’ is closed to new replies.