Forum Discussion

davidgomezbeezy's avatar
davidgomezbeezy
Copper Contributor
Jun 25, 2019

Hide Site Header communication site

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.

 

 

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: VesaJuvonen 


Many thanks.

  • 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.

Resources