WordPress.org

Ready to get started?Download WordPress

Forums

WP Admin Menu Tab not showing up (4 posts)

  1. Connor Miles
    Member
    Posted 1 year ago #

    Hi,

    in my dashboard the menus tab isnt showing up under themes

    i have this in my functions.php

    <?php
    // WORDPRESS MENUS
    
    		add_theme_support( 'menus' );
    
    	// REGISTERING MENUS
    
    		register_nav_menus(
    			array(
    				'head-nav' => __( 'The Main Menu' ),   // MAIN HEADER NAVIGATION
    				'foot-nav' => __( 'Footer Navigation' ) // FOOTER NAVIGATION
    			)
    		);
    }
    ?>

    Thats all i have in my theme about menus apart from calling the menu in the header.php

  2. Jose Castaneda
    Member
    Posted 1 year ago #

    Why not just register each one individually? The function register_nav_menus() calls the single function register_nav_menu() anyway.

    register_nav_menu ( 'head-nav', __( 'The Main Menu', 'theme-domain' ) );
    register_nav_menu ( 'foot-nav', __( 'Footer Navigation', 'theme-domain' ) );
  3. Connor Miles
    Member
    Posted 1 year ago #

    hi,

    im getting a syntax error on that and just to be clear im not ob about just the menus the actual menu link in the the dashboard is not showing up under the themes link so i cant manage the menus

  4. Jose Castaneda
    Member
    Posted 1 year ago #

    You can leave out the 'theme-domain' part if you don't really plan on making the theme translatable anyway. That is the main purpose of the function __().

Topic Closed

This topic has been closed to new replies.

About this Topic