Hi together,
I麓m looking for an easy and reliable way to hide the following parts of any Modern Page:



The reason for that is: We want to have our new Intranet based on a Modern Communication Site. And the mentioned parts have to be hidden to realize the desired Homepage-Design.
My desired way to achieve that, is to configure suchlike things on SharePoint-Side on site-collection or page level. So therefore, no code should be needed.
After I didn麓t find any easy solution for this and even MS doesn麓t have any suggestions for that I麓ve build an Application Customizer Extension to serve that purpose. Inside the onInit-Method I call an 'ElementHidingService' which does the desired work.
In short words: It gets the relevant elements by their css-classnames and adds a new style-attribute with 'display: none' to them.
I麓ve attached the ElementHidingService.txt - file to this issue - there you can see, how it works.
But there are several issues by serving the purpose this way:
Do you know any better way to achieve the addressed requirements?
import ElementHidingService from './components/Services/ElementHidingService';ElementHidingService.hideElements() - method inside your onInit - method.Thanks in advance.
Michael
So, it's javascript, so you can technically do whatever you want. However, from a "supportability" perspective, it puts you into a gray area. If the IDs change, your solution might stop working, if app logic is dependent on those elements being present and visible it is your responsibility, etc.
Your best bet is to log requests in user voice. That said, your scenario isn't unique or unheard, and there should be features coming (both in the overall product as well as the SharePoint Framework) to help achieve your goals. I can't comment on specific ETAs though.
Closing as @patmill already answered. Using UserVoice to show the demand for these would help.
Hi,
We have exactly the same requirement to hide to SharePoint Online TOP header instantly.
We do not want the default SharePoint header in our intranet.
Did you let a message in the SharePoint User Voice for this ?
Thanks for your help,
Best Regards,
Jean-Christophe AUDARD
Hi,
there are already two suggestions for this in the User Voice:
1. remove-banner-and-header-title-from-modern-pages
2. title-banner-on-modern-pages
I麓ve voted for both but I didn麓t write any message ...
Regards
Michael
We also need for sharepoint to provide option to hide modern site header by default as there are some cases we need to hide the site header fully without having to hide it using CSS using application customizer and causing delays during the hiding process (just not great for user experience).
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues
Most helpful comment
We also need for sharepoint to provide option to hide modern site header by default as there are some cases we need to hide the site header fully without having to hide it using CSS using application customizer and causing delays during the hiding process (just not great for user experience).