Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // add to functions.php
- // removes the nav menu from the specific page
- // Replace my-slug with the correct slug
- function hide_nav_menu($nav)
- {
- if (is_singular('my-slug'))
- {
- return false;
- }
- return $nav;
- }
- add_filter( 'wp_nav_menu_items', 'hide_nav_menu' );
Add Comment
Please, Sign In to add comment