The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Can I exclude a page from the portal theme, or hide the header/footer?

john_byrnes
ServiceNow Employee
ServiceNow Employee

I'm working on a portal that has a landing page that will be displayed to users before they are logged in.  This page will show some elements of the portal, but not all, and it shouldn't have the header and footer that will be present on all of the pages once the user has logged in.  

I was hoping to easily accomplish this by adding the following to the page specific CSS, but it looks like Service Portal is ignoring it:

.header, .footer { display: none; }

I've also tried setting visibility:hidden, and height:0 just for kicks.  

From what I can tell, Service Portal is ignoring anything to do with the header and footer, as I've tried simply changing the background color and even that is ignored.  

3 REPLIES 3

Allen Andreas
Administrator
Administrator

Hi,

Please add:

header{


   display: none;


}

to the specific page. Similarly for footer.

Just like I did, not a variation or what you've already done.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

john_byrnes
ServiceNow Employee
ServiceNow Employee

I got it to work with...

.footer{display:none !important;}

...on the page CSS.  That !important bit is important.  Otherwise it gets overridden by the theme

Ah, glad you got it to work


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!