Title: custom CSS to hide header
Last modified: January 30, 2020

---

# custom CSS to hide header

 *  [mirash](https://wordpress.org/support/users/mirash/)
 * (@mirash)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/custom-css-to-hide-header/)
 * Hi,
    I want to hide the harder menu for some posts. I have tried all the CSS 
   codes I have found in the forums. None works. Can you help me?
 * Kind regards,
    Mira
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustom-css-to-hide-header%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/custom-css-to-hide-header/#post-12383326)
 * Just the menu? Add this to the Additional CSS panel of the customizer:
 *     ```
       .page-id-14 .navbar-header {
           display: none;
       }
       ```
   
 * This only hides on page ID 14. To hide on other specific pages, add similar selectors,
   separated by commas. For example:
    `.page-id-14 .navbar-header, .page-id-22 .
   navbar-header, .page-id-66 .navbar-header`
 *  Thread Starter [mirash](https://wordpress.org/support/users/mirash/)
 * (@mirash)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/custom-css-to-hide-header/#post-12384970)
 * Hi, thanks for the answer.
    Unfortunately this is not working. The menu does 
   not disappear.
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/custom-css-to-hide-header/#post-12386883)
 * My bad, I had a smallish window open, which triggered the mobile menu. The previously
   provided code only hid the mobile hamburger menu. Try this instead:
 *     ```
       .page-id-14 .navi {
           display: none;
       }
       ```
   
 * Should hide both kinds of menus on page ID 14.
 *  Thread Starter [mirash](https://wordpress.org/support/users/mirash/)
 * (@mirash)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/custom-css-to-hide-header/#post-12387178)
 * Thanks again. I seem to be having an issue with the custom CSS, it does not seem
   to work. I have deactivated all plugins, but no change.
    No idea what the issue
   could be?
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/custom-css-to-hide-header/#post-12387597)
 * it seems to work for the page you posted, i.e. the front page.
    any other specific
   pages will have different `.page-id-???` numbers. or could be caused by your 
   used cache…
 *  Thread Starter [mirash](https://wordpress.org/support/users/mirash/)
 * (@mirash)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/custom-css-to-hide-header/#post-12387725)
 * You were right, when I cleared the cache, it worked for the front page.
    it is
   actually for a post and here it does not work.
 * [https://www.dr-scheib.de/psychosomatische-grundversorgung-kompaktkurs/](https://www.dr-scheib.de/psychosomatische-grundversorgung-kompaktkurs/)
 * I have used this:
 * .page-id-820 .navi {
    display: none; }
 * and also tried:
 * .post-id-820 .navi {
    display: none; }
 * Thank you very much!
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/custom-css-to-hide-header/#post-12388617)
 * Check the body tag for correct class for post IDs. It’s `.postid-820 .navi` selector(
   only one hyphen)
 *  Thread Starter [mirash](https://wordpress.org/support/users/mirash/)
 * (@mirash)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/custom-css-to-hide-header/#post-12389236)
 * Thank you so much, that worked!!!

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

The topic ‘custom CSS to hide header’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 3 participants
 * Last reply from: [mirash](https://wordpress.org/support/users/mirash/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/custom-css-to-hide-header/#post-12389236)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
