Title: Hide menus on certain pages
Last modified: February 24, 2026

---

# Hide menus on certain pages

 *  [tammya1999](https://wordpress.org/support/users/tammya1999/)
 * (@tammya1999)
 * [1 month, 4 weeks ago](https://wordpress.org/support/topic/hide-menus-on-certain-pages-2/)
 * I would like to hide the mobile main menu on certain pages on my website and 
   I’m not finding a way to do that. Most of the site is private but there are a
   few pages that is open.
 * On the page link above, I had to hide the header because it was showing the mobile
   links from the member site that is private.
 * I am using conditional headers on those pages but the mobile version of the of
   the main menu will show in mobile view. In desktop view only the conditional 
   header shows and not the main header shows.
 * Screenshot of how the menu looks in mobile. The main menu should not be there
   in mobile – [https://imgur.com/a/YAObwtK](https://imgur.com/a/ZsuguX9)
 * TYIA, Tammy
    -  This topic was modified 1 month, 4 weeks ago by [tammya1999](https://wordpress.org/support/users/tammya1999/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhide-menus-on-certain-pages-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Md Asadullah Galib](https://wordpress.org/support/users/asadullah96/)
 * (@asadullah96)
 * [1 month, 4 weeks ago](https://wordpress.org/support/topic/hide-menus-on-certain-pages-2/#post-18832501)
 * Hello [@tammya1999](https://wordpress.org/support/users/tammya1999/), This usually
   happens because many WordPress themes load the **mobile menu separately from 
   the desktop header**. So even if you hide the header conditionally, the mobile
   off-canvas / hamburger menu is still being output in mobile view.
 * There are multiple ways to hide the menu from a specific page. But I am sharing
   the one I use most of the time.
 * In WordPress, every page has a page ID. To get the exact page ID, edit the page
   and look at the URL. Now, with the URL, take the menu class and hide it via CSS.
   Simple display none CSS.
 * Note: Try this, only if you are expert in the editing WP site.

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhide-menus-on-certain-pages-2%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [Header Menu](https://wordpress.org/support/topic-tag/header-menu/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Md Asadullah Galib](https://wordpress.org/support/users/asadullah96/)
 * Last activity: [1 month, 4 weeks ago](https://wordpress.org/support/topic/hide-menus-on-certain-pages-2/#post-18832501)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
