Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    I have to ask the question of how comfortable are you with code?

    The reason I ask is you will need to create a child theme, copy/paste some files and edit those files. You may also have to do some CSS editing.

    Thread Starter Annette

    (@an_ing)

    Actually I am modifying some files to create my website, so I am comfortable with code, I know html, php and ccs. So what should I do to add menus?

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    In the child theme add:

    function _child_menus(){
    register_nav_menus( array(
        'secondary-menu' => 'Second Menu',
        'tertiary-menu' => 'Third Menu,
        ) );
    }
    
    add_action( 'after_setup_theme', '_child_menus' );

    Keep in mind this is untested. 🙂

    Thread Starter Annette

    (@an_ing)

    In fact I resolved it, it was easy, I just added this code to the functions.php file
    register_nav_menus(
    array( ‘second-menu’ => __( ‘Second Menu’, ‘blankslate’ ) ));
    register_nav_menus(
    array( ‘third-menu’ => __( ‘Third Menu’, ‘blankslate’ ) ));
    and it worked, thnx for your answer

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Main menu’ is closed to new replies.