Jump to content


This topic is now archived and is closed to further replies.


Hide on specific pages or posts permanently removes that section from all pages

Recommended Posts


Hi, i have a site where i need to hide the header and footer on the landing page and only display a logo in the center of the page.

But when i use the field "Hide on specific pages or posts? (IDs Comma Separated)" and add the page number in, e.g 51 save and refresh, the header and footer are "removed/deleted" from ALL pages on the site and not just hidden.

Even if i take the page number out and Save, the header and footer are GONE and i need to redo them.


What am i doing wrong?


WP 4.1




Share this post

Link to post
Share on other sites

Hi quinntinm

Always remember that the header and footer will reflect in all pages, you will need add some CSS to stop reflecting header and footer in one page.


For example

You can add a CSS rules like...


.page-id-XX . #header { display:none !important; }


My exemplary code is not necessarily applicable as written, to your site, so please adjust accordingly.


If you also wish to know how I find the page ID, all you need to do is load up FireBug or Google Chromes web dev tool and inspect your page html, at the top you should see body which has a number of classes assigned to it, one of these is page-id-XX (replace XX with your pages id value. I add a Danny´s a screenshot to assist you.



Life is too short to remove USB safely ...

Share this post

Link to post
Share on other sites

Hi batman, thanks for the info.


I will definitely try your suggestion.


From a UI point of view i would then assume that "feature" would not be available on that page. So if you try to "hide" the header it says this is not an option etc.

The irritating thing is that it "deletes" the contents of the header and footer when you do that so you cannot do it to check if it can be done and then go back, you have to then RE-DO all of it.


Not ideal.


It turns out that if you add the page number to the field and it deletes the header / footer content - if you then on a DIFFERENT page add the header and footer content it then appears on all pages except for the page you have told it to be hidden on.

So if you do it in that strange order, it does actually work.


Very weird.

Share this post

Link to post
Share on other sites

Can you record yourself recreating the issue using either Jing or QuickCast so we can the issue you're having first hand.

Please search our forums, before posting!

Share this post

Link to post
Share on other sites

  • Similar Content

    • Lisa Haran
      By Lisa Haran
      I have a map here http://www.iloveoffset.com/maps/
      I want to add several pointer locations to the map, but when I do they do not appear.
      On this map there are 2 pointer locations and as you can there is only one visible.
      Earlier today I added 7 and could only see 4 so there is something odd going on.
      My theme is up to date
    • clj182
      By clj182+
      I've been having trouble unlocking the template section for past couple of weeks. When I try clicking nothing happens. 
      I've deleted my custom css and removed plugins. Im down to having only the following plugins:
      Contact Form 7
      DMS Professional Tools
      Pagelines Updater
      It was working fine before i have no idea what's going on with it.
    • flourishdesignstudio
      By flourishdesignstudio+
      My DMS 2 site http://www.heart-stone.com/ will not save any new custom css... I can still edit templates and publish those but any custom css that I enter never saves.
      All WP files, themes, and plugins are up to date. 
      Any thought about what might be causing this?
    • flourishdesignstudio
      By flourishdesignstudio+
      Is there a way to edit the custom CSS via FTP? I know I can edit the custom code in the Chrome editor but is there a file path I can use to find and edit the CSS directly from our FTP?
      Thanks in advance for the help!
    • nizami
      By nizami+
      Using navbar section with correctly configured WP menu to display main navigation at https://elenaangel.com. 
      All fine in desktop viewport. Menu displays twice in hamburger mode. How to fix this please?