How to replace the standard menu for specific page types
I would like to add a new menu to specific pages of the theme.
Specifically, my website has quizzes for students.
I don't want the standard menu to show when the students are taking a quiz.
I have determined that in order to do this I need to:
0) Create a new template for the new page type (in my case, a quiz page).
1) Register a new menu type using register_nav_menu("new-menu-type",__( "Readable Name")) to function.php in the theme folder.
2) Create a new "theme location" by adding wp_nav_menu(array( 'theme_location' => 'new-menu-type' )) to the header of a template file.
3) Then use the admin-panel Appearance > Menus, create the new menu and assign it to the new menu type.
As you can imagine, my difficulty is in step 2. I can add an extra menu, but I can't remove the existing one.
I would really appreciate some guidance in this regard. Thanks
Comments
we are really sorry but we do not offer files customizations and that's why in this matter we can not help you unfortunately.
Thanks for understanding!