How to register new nav menu

  • Resolved
    Posted in: Highend WP Theme  
  • Customer
    timfetter
    September 16, 2022 at 4:07 pm #157838

    I’ve copied the directory structure and the class-highend-theme-setup.php into the child theme and have added a new entry into the array but the location doesn’t appear in the list of Display locations in the Edit Menus tab. What am I missing?

    highendwp-child/includes/core/class-highend-theme-setup.php

    // Register Navigations.
    register_nav_menus(
    	array(
    		'main-menu'     => esc_html__( 'Main Menu', 'hbthemes' ),
    		'footer-menu'   => esc_html__( 'Footer Menu', 'hbthemes' ),
    		'mobile-menu'   => esc_html__( 'Mobile Menu', 'hbthemes' ),
    		'one-page-menu' => esc_html__( 'One Page Menu', 'hbthemes' ),
    		'social-menu' 	=> esc_html__( 'Social Menu', 'hbthemes' ),
    	)
    );

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.