register_nav_menus syntax error, unexpected identifier "register_nav_menu" In

hi i was following a video and i keep getting errors even when using wordpress developers docs

here is my code

    register_nav_menus(
    array(
      'top-menu' => 'Top Menu Location' ,
      'mobile-menu' => 'Mobile Menu Location' 
     )
   );

Thanks for taking the time to look and help!

Leave a Comment