After theme change the menus have to be manually linked to the corresponding theme location

Each theme has difference “theme location”, so when you change the theme, the “theme location” will change too. That mean there is no way you can hard code those menu to “theme location”. (That’s all I know)

tech