Without knowing your theme, you have at least a few options. You could 1. hide it with CSS.
.your-page-template-php #your-menu {
display: none;
}
Or 2. you could create a custom header file. For example, duplicated header.php to header-nomenu.php. And in your new file delete the menu. And then in your page template instead of calling
get_header();
you’d call
get_header('nomenu');
EDIT
Upon further review there is a filter inside the wp_nav_menu
function. Conditional logic will probably work as long as you haven’t messed around with the query object and forgot to reset it.
function wpa76334_filter_nav_menu($menu, $args){
if( is_page_template('your-template.php')) $menu = null;
return $menu;
}
add_filter('wp_nav_menu','wpa76334_filter_nav_menu', 10, 2);
Related Posts:
- wp_list_pages() but only show children on the branch you are on
- How to add class and span to
- How does WP knows which template to use for a page
- Dynamically exclude menu items from wp_nav_menu
- wp_nav_menu: show menu only if one exists, otherwise show nothing
- Apply the_title() filter in post & page title, but not in menu title
- Add custom menu item using wp_nav_menu_items filter
- Custom search filter causes menu and query_posts problems
- Unregister Nav Menu from Child-Theme
- How to get IDs for objects in menu branch?
- Add child pages automatically to nav menu
- Automatically remove trashed pages from nav menu
- Dynamically link to the latest post or simulate request of specific post in page template
- Allow html tags in WordPress Custom Menus Description Field
- Using filters to change href of nav menu page link
- Directing a page to a default subpage
- How to apply a class to the second word in menu list item?
- Can you have different menus and theme on a per-page basis?
- WordPress nav_menu_link_attributes Not Working
- List children of second level sub page
- Is it possible to add a filter for the output of nav-menu items in admin?
- How to make pages metabox display all hierarchy in menu admin?
- if role is logged in then do something
- Remove navigation from header in custom page template
- How to get current page menu item name instead of full menu item list
- Filter menu item to add classes/attributes?
- Edit html for menu items in default frontend menu
- Hide pages depending on role
- Get parent page/menu id of current post
- Show all parent pages and their children below from same author as currently viewed page
- Set Item Order with wp_nav_menu_{$menu->slug}_items
- Change menu items URL
- When at / ( or “home”) my menu doesn’t get a current-menu-item class
- How to add parent element’s title to nav menu’s child?
- Why is ‘nav_menu_item_args’ filter’s $item argument empty?
- Making WordPress’ page and menus visible only for logged in users, checking session variables
- Add class to active element and its parent in nav menu
- Different side menu on each page
- WordPress – site with 2 stylesheets and more…
- display only the wp_nav_menu, which has the current-menu-item
- Remove Page Name From WordPress Menu
- Hiding Menu From Specific Pages
- Getting post content within wp_nav_walker
- wp_list_pages sort order is different for different languages [closed]
- list pages only from master parent
- wp_list_pages: only show subpages on the parent page?
- Removing strip_tags not working on nav_menu_description
- Third level navigation class
- How to add #navbar to all page links?
- Auto add pages to primary menu with functions.php
- Does loading of sub pages in menu cause load to the server?
- How do I hide the current page’s title?
- WordPress menu permalink redirects to wrong page
- add span to top level links of a wordpress menu called “main”
- Link to Homepage in Menu
- Schedule Page to Menu [duplicate]
- Debugging – trying to add search box to menus
- Add class active to static menu
- How do I render a navigation menu like my theme does?
- Check if Page Already Exists in Menu
- From a page, is it possible to find entry’s “menu_item_parent”?
- Add active class to top-level menu items when viewing single for that post type
- Programmatically add existing pages and subpages to Appearance Menu
- How to retrieve parent menu item name of current submenu item
- two different separate sections on the same site
- When clicking on menu item not going to specific page
- add_filter on menu items to add a menu item
- Ad custom admin page like WordPress customizer [closed]
- how to disable default menu classes
- Insert other menus as submenus of a main menu
- Displaying different page links on different pages
- list category posts under its item in menu
- pull non-wp site into content area of wordpress -or- pull wp header into non wp site?
- Create custom page and add it in nav menu by code
- Does is_child() exist in wp 3.5.1?
- wp_list_pages sort order by custom nav menu order
- How to highlight 1st level menu item based on actual page
- How can I switch pages?
- Insert a div before the wp_nav_menu
- How to change menu structure?
- Secondary Navigation Menudisappeared When using wp_nav_menu_items
- remove specific classes from menu items
- How to create a menu item which is not a page
- How can I make a menu link visible only to admins (without plugins)?
- How to add a page to header that is outside of WordPress?
- wp_nav_menu action/filter help
- add_filter for where statment issue
- How to Structure Pages and Subpages
- Highlighting top level link when viewing one of it’s sub-pages, which are not linked in the menu
- Three menus – parent / child / sibling
- Add a counter beside menu item label
- Add (grand)child pages automatically to nav menu
- how avoid the link of the current post in the menu in the sidebar?
- Disable parent in wp_list_pages – WordPress
- Page appears after de registering from menu
- Add custom link on the fly to nav menu
- Get parents child pages
- menu-item class missing on wordpress menu
- Dynamic menu wp_list_pages displaying only current branch including: current page, his siblings and its childs
- wp_nav_menu without menu or theme_location specified