Jump to content


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


Hide Header from Certain pages

Recommended Posts

seanocaside21+    10

Hi There,


I was looking for some help with Hiding the Header global region from certain pages.


In this instance the page name is "Services Directory" or slug services directory. 

I presume it is possible to do this with something like:


#header.... Target Page {display:none !important; }


I just having trouble targeting the specific page. 





Share this post

Link to post
Share on other sites
seanocaside21+    10

Simon_P Excellent! worked a treat :) 


Here is the code for anyone else who wants to do the same: 


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


Thanks for your help! 

  • Like 1

Share this post

Link to post
Share on other sites
James B    436
James B

Thank you for updating the thread and posting the solution you used.

Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post

Link to post
Share on other sites
kellyc214    1

Thank you Simon_P


Worked like a charm. For those who need a little more guidance:


Place this code in the CCS <Custom> section. The page number can be found by going to the page you would like to edit, then clicking on page setup, then page handling - it will give you the page id. You may have to refresh several times for the code to stick and the adjustment to be made. 


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

Share this post

Link to post
Share on other sites

  • Similar Content

    • flourishdesignstudio
      By flourishdesignstudio
      I have an older site that was built using PageLines several years ago (prior to the release of DMS). I wanted to leverage some of the power of your new PL5 plugin but the theme prevents be from adding any generated custom sidebars to the theme (through the drag and drop interface) and does not allow me to add any PL5 sections/containers/etc to the header or footer. Is there any way to easily override that or am I stuck only using PL5 in the content areas of the site?
      Thanks so much for the help!
    • JP
      By JP+
      How can you set the translations with platform5, the parts that are not in pages or posts? Texts and images…
    • romanondrasek
      By romanondrasek
      hi all, I have some trouble using PL5 on my site. 
      I used plugins for event calendar (event on) and plugin (timetable responsive scheduler for WP) for schedule (classes) in the gym.
      The problem is, that post from this 2 plugins are shown without menu in header and footer. (I setup header and footer) in the page editor for all type of page. 
      When I create a lesson, it creates posts with slug (I have a slug "lekce" & event for events).
      I try to edit the post with PL editor, but editor is not opening on the post.

      Do you have some idea where should be some problem? Thanx so much.
      here are links for the sites :
      site with schedule :
      site of one of the class (pilates)
      site with calendar :
      7 side with one event from the calendar :
      when I have my site on DMS2 it was working :-(
    • Barnaby Skinner
      By Barnaby Skinner+
      Hey team,
      Really simple question: where would I add code to a specific page header? I can see in the settings I can add code to the global header, but can't see how to do it for a single specific page. It's related to facebook pixel tracking
    • Le Chef Est Une Femme
      By Le Chef Est Une Femme+
      Hey everyone
      I am very sorry if this question has a "deja vu"  taste but I have been looking for more than 2 hours a way to add a phone number in the top right corner of my header website.
      Before asking that, I have read many of the questions related to that subject, from hooks and action map to function.php and hooker plugin but I am very lost. Plus many links kindly given by some of you are now 404 pages
      Is there anyone willing to help me find the easiest way to add this number please ? 
      In advance, thank you