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
- 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
- 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
- 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?
- Remove navigation from header in custom page template
- 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?
- 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…
- Remove Page Name From WordPress Menu
- Hiding Menu From Specific Pages
- Getting post content within wp_nav_walker
- Removing strip_tags not working on nav_menu_description
- Third level navigation class
- Auto add pages to primary menu with functions.php
- Does loading of sub pages in menu cause load to the server?
- WordPress menu permalink redirects to wrong page
- Schedule Page to Menu [duplicate]
- Add class active to static menu
- How do I render a navigation menu like my theme does?
- Check if Page Already Exists in Menu
- Add active class to top-level menu items when viewing single for that post type
- Programmatically add existing pages and subpages to Appearance Menu
- 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
- wp_list_pages sort order by custom nav menu order
- How can I switch pages?
- How to change menu structure?
- How to create a menu item which is not a page
- How can I make a menu link visible only to admins (without plugins)?
- wp_nav_menu action/filter help
- add_filter for where statment issue
- How to Structure Pages and Subpages
- Three menus – parent / child / sibling
- Disable parent in wp_list_pages – WordPress
- Add custom link on the fly to nav menu
- Get parents child pages
- menu-item class missing on wordpress menu
- wp_nav_menu without menu or theme_location specified
- Filter to hook into menu items and add a custom attribute
- I can’t add more pages to menu – menu delete pages
- wp_list_pages Hierarchical Help
- Making pages in a menu appear conditionally
- add_menu_page does not render the expected result
- Wp_list_pages not showing children with custom page template
- Main menu navigation links and new pages
- How to show pages in menu without link
- Add a menu metabox to post edit page
- Setting or plugin for showing submenus horizontally under the main menu, and keep them after selection
- if role is logged in then do something
- Add prefix to url, but products not showing in page SHOP
- How to get the Page Name of the current page?
- Swap out a page that is a parent to a many many pages
- How can I order these pages in this navigation bar on this old wordpress theme?
- Modifying Woocommerce menu based on tags and categories
- WP pages content is missing in frontend
- Why does WordPress convert absolute URLs to relative URLs for menu items?
- Menu location switcher – example code fails
- Unable to remove page from primary menu
- how to create pages and link them to a menu
- Add Class to Custom Menu Widget ul
- How to sort a sub-menu, generated with get_pages(), by the page order instead of alphabetically?
- Any simple way to show 10 previous pages by id to current page in links as a menu
- Avoid changing menu query with suppress_filters => false
- Creating and populating custom nav menu (menu-item-position not working)
- How to make a page to not appear in the menu when created?
- Custom Menu based off custom header
- How to modify menu text in callback function of ‘walker_nav_menu_start_el’ hook
- Adding Pages to Menus – No Page Hierarchy in Backend [duplicate]
- How can I make this process automatic?
- how can i get the page_ID in nav li [closed]
- Problems with draft website pages
- Why is WordPress stripping anchor links from mneu item URLs?
- Control page access based on User Meta data?
- Add button and title on submenu WordPress