Hide Site Header communication site

Copper Contributor

Hi. 

 

We are trying to hide the Site header in a communication site, and we would like to know if there is any possibility of doing so.

 

Modern-Header.PNG

 

We are trying with some css or js, injected in a webpart and SPFx extension, but there is some flickering, because the code is not executed before the header is showed. In addition, to achieve this we are depending on some CSS classes that we understand could change.

Is there any supported way to do it? Or will be supported in the future?

 

CC: @Vesa Juvonen 


Many thanks.

1 Reply

@davidgomezbeezy The approach you took is really the only approach, but it's also not really a supported approach. The CSS class names & HTML could change (and have many times already with the header).  I personally would avoid trying to hide the header... In my experience, the business value is far less than the technical debt is worth.