This solution is created with SharePoint Framework for SharePoint Online.
A common requirement in the past with classic SharePoint solutions was to create start pages utilizing the full canvas of the page. In classic SharePoint this could easily be accomplished by adding a few lines of CSS in a Page Layout.
For modern pages we don't have Page Layouts anymore, and to accomplish the same result a SPFx Extention can be used. This is more spesific a Application Customizer registering one simple CSS override in the top placeholder of the page.
This solution will work with both Communication and Team Sites, but is recommended to be used with Communication Sites. This template will give us full control of the page canvas below the Office 365 suite bar. Using it on a Team Site will not make much sense as we have a different layout with a left navigation bar etc.
- Intranet front page
- Global start page
- Full page apps hosted in SharePoint Online
git clone the repo
npm install
gulp serve
Build the app with:
gulp bundle --ship
gulp package-solution --ship
Enable the app:
- Upload the file "spfx-extension-fullpagecanvas.sppkg" from "/sharepoint/solution" to the App Catalog.
- Go to either a modern Communication or Team Site.
- Go to "Site contents" and add new "App"
- Select "spfx-extension-fullpagecanvas" and wait for it to be installed
- Go to the front page and check if the header of the page is now hidden