Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a wp theme with this menu in header:

    <div id="header_nav">
        <ul id="nav" class="clearfloat">
            <li><a href="<?php echo get_option('home'); ?>/" class="on">Home</a></li> 
            <?php wp_list_pages('title_li='); ?>
        </ul>                       
    </div>

I followed the tut here http://www.wpbeginner.com/wp-themes/how-to-add-custom-navigation-menus-in-wordpress-3-0-themes/

and replace it with

<?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'container_class' => 'menu-header' ) ); ?>

but it doesn't style at all like previously. So is it really the right way ?

share|improve this question
add comment

1 Answer

<?php wp_nav_menu( array('theme_location'  => 'primary or whatever you set it', 'sort_column' => 'menu_order', 'menu_id' => 'nav', 'menu_class' => 'clearfloat', 'container_id' => 'header_nav' ) ); ?>

Codex if your friend! http://codex.wordpress.org/Function_Reference/wp_nav_menu

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.