Background
We all know that with Modern experience in SharePoint, there is no concept of a master page. So, Microsoft has come up with SPFx extensions to enhance the user experience. Please refer to this link to know more about SPFx extensions.
One of the basic requirements of any SharePoint site which requires branding is to add custom header and footer on the site. Now, as we don't have a master page concept on modern pages, an SPFx extension application customizer can be used to add the header and footer to the SharePoint modern site pages. We can find a sample at this link. It is pretty much straightforward and easy to develop customizer to add a header and a footer. While I was trying this for an issue raised by someone on stack overflow, I found some challenges mentioned below.
- Header and footer HTML is hardcoded in solution.
- I had to redeploy SPFx solution every time a small change is required in text/HTML.
- A different solution would be required for different site collections as we would definitely need different header and footer for each site collection(most of the case).
- High maintenance and time consuming for a simple task.
With these challenges, I thought of creating a reusable component web part which provides a user interface to add/edit/remove header and footer on modern pages using SPFx extension application customizer.
This solution comes handy for the developers, tenant admins, or site collection administrators to add header and footer.
Features of solution
- Web part to configure Header and Footer
- Edit functionality if header or footer is already added via this solution.
- Completely Remove header and footer created via this solution
After installation, follow the below steps to use the web part.
Step 1
Create a SharePoint Page. Add a web part named ‘WpConfigureApplicationCustomizerWebPart’.







DAVID GENAOPosted Aug 30, 2022, 12:28 AM
This worked great for me. Two questions 1. I deploy it in a Tenant, would I be able to customize different sites differently or will it affect the whole tenant? 2. Is there a way to keep the top navigation in? To keep the waffle, search and the settings on the top? Thanks!
Prudhvi SpdevPosted Aug 4, 2020, 11:32 AM
Getting error when uploading to SharePint 2019 On-Prem App-catalog, Does this solution work on 2019 OnPrem? Error is ....."There were errors when validating the App manifest.: Xml Validation Exception: 'The 'IsDomainIsolated' attribute is not declared.' on line '1', position '286'."