Answers for "wp menu declaration"

PHP
0

wp menu declaration

function register_my_menus() {
  register_nav_menus(
    array(
      'header-menu' => __( 'Header Menu' ),
      'extra-menu' => __( 'Extra Menu' )
    )
  );
}
add_action( 'init', 'register_my_menus' );
Posted by: Guest on September-14-2021
0

wp menu declaration

<?php wp_nav_menu( array( 'theme_location' => 'header-menu' ) ); ?>
Posted by: Guest on September-14-2021

Browse Popular Code Answers by Language