SOLVED

Custom header across sites and pages

%3CLINGO-SUB%20id%3D%22lingo-sub-1204207%22%20slang%3D%22en-US%22%3ECustom%20header%20across%20sites%20and%20pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1204207%22%20slang%3D%22en-US%22%3E%3CP%3EHi.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOn%20our%20upcoming%20intranet%20based%20on%20Sharepoint%20Online%2C%20we're%20looking%20into%20adding%20a%20custom%20header%20across%20all%20sites%20and%20pages.%20The%20header%20may%20contain%20additional%20fields%20such%20as%20information%20about%20the%20logged%20in%20user.%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20guessing%20we%20won't%20be%20able%20to%20tweak%20the%20existing%20header%20much%2C%20and%20would%20potentially%20need%20to%20consider%20developing%20our%20own%20web%20part%20and%20inject%20in%20at%20the%20top%20of%20every%20site%2Fpage.%20Is%20creating%20a%20custom%20web%20part%20really%20the%20only%20or%20best%20way%20to%20add%20a%20custom%20%22header%22%20across%20all%20our%20sites%20and%20pages%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1204207%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1205155%22%20slang%3D%22en-US%22%3ERe%3A%20Custom%20header%20across%20sites%20and%20pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1205155%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F423531%22%20target%3D%22_blank%22%3E%40kenneho%3C%2FA%3E%26nbsp%3BYou%20may%20want%20to%20look%20into%20developing%20an%20SPFx%20application%20customizer%20extension%20instead%20of%20a%20web%20part.%20See%26nbsp%3B%3CA%20title%3D%22Use%20page%20placeholders%20from%20Application%20Customizer%20(Hello%20World%20part%202)%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fspfx%2Fextensions%2Fget-started%2Fusing-page-placeholder-with-extensions%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EUse%20page%20placeholders%20from%20Application%20Customizer%20(Hello%20World%20part%202)%3C%2FA%3E.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

Hi.

 

On our upcoming intranet based on Sharepoint Online, we're looking into adding a custom header across all sites and pages. The header may contain additional fields such as information about the logged in user. 

I'm guessing we won't be able to tweak the existing header much, and would potentially need to consider developing our own web part and inject in at the top of every site/page. Is creating a custom web part really the only or best way to add a custom "header" across all our sites and pages? 

1 Reply
best response confirmed by kenneho (Contributor)
Solution

@kenneho You may want to look into developing an SPFx application customizer extension instead of a web part. See Use page placeholders from Application Customizer (Hello World part 2)