• Having a problem adding custom menus. The template I’m using doesn’t support menus. So I’m trying to overide that. From the “Navigation Menu” help page they instruct to add this:
    To Function php

    function register_my_menus() {
    register_nav_menus(
    array( ‘header-menu’ => __( ‘Header Menu’ ) )
    );
    }
    add_action( ‘init’, ‘register_my_menus’ );

    Then add this to the header php

    <?php wp_nav_menu( array( ‘theme_location’ => ‘header-menu’ ) ); ?>

    I get fatal errors. Can someone explain in more step by step detail?

Viewing 1 replies (of 1 total)
  • Can you paste the full content of your functions.php in pastebin.com?
    Fatal errors are due to error in the the functions.php, so there’s bound to be an error in there.

    I just tried your code and it works fine.
    There’s probably something else in the file.

Viewing 1 replies (of 1 total)

The topic ‘Menu Help’ is closed to new replies.