Title: Remove nav menu
Last modified: May 3, 2019

---

# Remove nav menu

 *  Resolved [chaphi90](https://wordpress.org/support/users/chaphi90/)
 * (@chaphi90)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/remove-nav-menu/)
 * Hi,
 * I am using a menu plug in and the original nav menu is still there.
    I am using
   a custom header on all other pages to hide it currently, but I would like to 
   disable the menu option. I have linked a test page without the customer that 
   you can see what I mean. 2 menu buttons, one with my plugin and the other the
   built in one from the theme.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fremove-nav-menu%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Amit Singh](https://wordpress.org/support/users/apprimit/)
 * (@apprimit)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/remove-nav-menu/#post-11491518)
 * Hello,
 * Add the below code to the fucntions.php file of the child theme to remove the
   navigation –
 *     ```
       function prefix_remove_nav( $return ) {
           $return = false;
           return $return;
       }
       add_filter( 'ocean_display_navigation', 'prefix_remove_nav' );
       ```
   
 *  Thread Starter [chaphi90](https://wordpress.org/support/users/chaphi90/)
 * (@chaphi90)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/remove-nav-menu/#post-11499052)
 * Hi!
 * Thanks for the code.
    I did add it the the functions.php file and it did not 
   remove the nav menu. Any other suggestions?
 *  Thread Starter [chaphi90](https://wordpress.org/support/users/chaphi90/)
 * (@chaphi90)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/remove-nav-menu/#post-11499072)
 * Is there anyway to do it with css code?
    I want to remove the nav menu button
   without removing the header.
 *  [Amit Singh](https://wordpress.org/support/users/apprimit/)
 * (@apprimit)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/remove-nav-menu/#post-11499599)
 * The above code should work. Try the below CSS code to hide it –
 *     ```
       div#site-navigation-wrap {
           display: none;
       }
       ```
   
 *  Thread Starter [chaphi90](https://wordpress.org/support/users/chaphi90/)
 * (@chaphi90)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/remove-nav-menu/#post-11500739)
 * Amazing, this worked beautifully!!
    Thank you so much!!!!!!!
 *  Thread Starter [chaphi90](https://wordpress.org/support/users/chaphi90/)
 * (@chaphi90)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/remove-nav-menu/#post-11502653)
 * Thanks again
 *  [Amit Singh](https://wordpress.org/support/users/apprimit/)
 * (@apprimit)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/remove-nav-menu/#post-11503539)
 * You’re welcome!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Remove nav menu’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/oceanwp/4.1.6/screenshot.png)
 * OceanWP
 * [Support Threads](https://wordpress.org/support/theme/oceanwp/)
 * [Active Topics](https://wordpress.org/support/theme/oceanwp/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/oceanwp/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/oceanwp/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Amit Singh](https://wordpress.org/support/users/apprimit/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/remove-nav-menu/#post-11503539)
 * Status: resolved