Hub Navigation and SPFx Application Customizer - Evolvous

Author Details

avatar-teacher

Evolvous

We are a team of tech enthusiast and this section is where we love to share our experience and our knowledge. We try our best to help you understand technical topics by giving you live instances of how-to’s, guides, tips, FAQ’s and troubleshoots.

If you like it or have questions, do share your feedback in the comments section below.

How to Use Hub Navigation and SPFx Application Customizer for Branding in SharePoint Online?  

Branding SharePoint Online is no longer about editing master pages or injecting custom CSS across an entire tenant. In this blog, we will look at how hub navigation and using SPFx application customizer for branding handled in SharePoint Online so that you can get better performance from your SharePoint environment. 

Microsoft has shifted modern SharePoint toward supported extensibility models. These models allow you to preserve compatibility with continuous platform updates. Today, two capabilities form the foundation of enterprise branding: 

  1. Hub Navigation for consistent navigation and information architecture 
  2. SharePoint Framework (SPFx) Application Customizers for extending the user interface with custom branding, headers, footers, notifications, and JavaScript functionality 

When we use them together, they give you a branded, consistent employee experience while remaining fully supported by Microsoft. 

In this guide, we will look at how each works, where each should be used, and how you can use them to truly enhance the quality of our SharePoint experience. 

Download Free eBook on SharePoint Intranet

Learn more about SharePoint intranet, and how you can design it to enhance collaboration with the modern SharePoint features.

Download Now 

What is SharePoint Hub Navigation?

Before we understand How hub navigation and using SPFx application customizer for Branding Handled in SharePoint Online, we must first understand the basics. SharePoint Hub Navigation provides centralized navigation for all sites associated with a SharePoint Hub Site.

Instead of maintaining separate menus on every site, navigation is managed once at the hub level and automatically inherited by associated sites.

Here is what a standard enterprise structure often looks like: 

standard enterprise structure - Evolvous

Every linked site displays the same navigation. 

Why Should You Go for Hub Navigation?

There are several benefits of Hub Navigation. It helps you to: 

  • Maintain consistent navigation across departments 
  • Simplify information discovery 
  • Reduce navigation maintenance 
  • Improve user experience 
  • Create logical information architecture 
  • Support organizational restructuring without rebuilding navigation

So, if you are managing a globally distributed organization with hundreds of SharePoint sites, Hub Navigation will significantly reduce administrative overheads. 

What Can Hub Navigation Do? 

SharePoint Hub Navigation is a versatile feature, as it supports: 

  • Mega menus 
  • Cascading menus 
  • Audience targeting 
  • External links 
  • Internal SharePoint links 
  • Microsoft 365 resources 
  • Dynamic site association 

Example: 

What Can Hub Navigation Do

 

What Hub Navigation Cannot Do?

While Hub Navigation does allow you to do to a lot of things, there are a few limitations as well. Hub Navigation does not allow:

  • Custom styling
  • Custom icons beyond supported options
  • JavaScript execution
  • Personalized UI components
  • Advanced branding

To handle these scenarios, you need to rely on SharePoint Framework extensions or SPFx.

Discover More About SharePoint Site Design 

Find out more about SharePoint site design and how you can improve it to deliver a better experience to your users. 

Explore Now

What are SPFx Application Customizers? 

A SPFx Application Customizer is an extension that injects custom components into every SharePoint page. Rather than modifying SharePoint itself, Microsoft provides you with predefined placeholders where your custom code can safely run. 

Common placeholders include: 

  • Top placeholder 
  • Bottom placeholder 

These placeholders are available across modern SharePoint pages. 

What are Common Branding Scenarios Using Application Customizers? 

Most of the clients that we have worked with, prefer to use Application Customizers to add: 

  • Corporate headers 
  • Global footers 
  • Company announcements 
  • Cookie consent banners 
  • Emergency notifications 
  • Dynamic help widgets 
  • Support links 
  • Department indicators 
  • Compliance notices 
  • Search enhancements 

Because the extension loads on every page, branding remains consistent throughout the tenant. 

What is the Standard Flow SPFx Architecture-based Branding?

When you want to know how hub navigation and using SPFx application customizer for branding handled in SharePoint Online, most of the time you will follow this flow:

User Opens SharePoint Page – > Application Customizer Loads – > Reads Tenant Configuration -> Builds Header/Footer – > Displays Branding

Configuration is often stored in: 

  • SharePoint Lists 
  • Tenant Properties 
  • Azure App Configuration 
  • Microsoft Graph 
  • Azure Functions 

This allows you to update branding without modifying code. 

Explore More About SharePoint Framework Development 

Discover more about SPFx Development and how our team of experts can leverage its true potential.

Our SPFx Services 

What are the Things You Need for Development? 

Before creating an Application Customizer, you will need to install: 

  • Node.js (supported LTS version) 
  • Yeoman 
  • Gulp CLI 
  • SharePoint Generator 

Next, you will need to globally install: 

  • npm install -g yo 
  • npm install -g gulp-cli 
  • npm install -g @microsoft/generator-sharepoint 

What is the Process of Custom Branding with SharePoint Framework 

  • Create the SPFx Project 

Generate the project:

yo @microsoft/sharepoint

Select: 

  • Extension 
  • Application Customizer 

Example: 

Solution Name

CorporateBranding

After generation:

CorporateBranding

src

extensions

branding

BrandingApplicationCustomizer.ts 

  • Register the Placeholder 

Inside the Application Customizer:

this.context.placeholderProvider.tryCreateContent(
PlaceholderName.Top
);

You can also create:

PlaceholderName.Bottom

These placeholders are where branding components render. 

  • Render a Custom Header 

Example:

this._topPlaceholder.domElement.innerHTML = `

<div class=”corp-header”>

<img src=”/logo.png”>

<span>Corporate Portal</span>

</div>

`;

The header now appears on every page where the extension is active. 

  • Apply Custom Styling

Reference your SCSS file:

.corp-header{

background:#003366;

color:white;

padding:12px;

display:flex;

align-items:center;

}

SPFx bundles styles with the solution. This avoids unsupported global CSS injection. 

  • Using React for Rich Branding 

Rather than static HTML, we prefer to use React for most enterprise implementation. React also improves maintainability and component reuse. Example capabilities include: 

  • Dynamic navigation 
  • User profile cards 
  • Live announcements 
  • Adaptive menus 
  • Notifications 
  • Search components 

 

  • Deploy the Solution 

Now, when it comes to deploying the solution, we need to package it: 

gulp bundle –ship

gulp package-solution –ship

The package generated is: 

sharepoint/solution/

CorporateBranding.sppkg

Then we will be uploading it to the SharePoint App Catalog. 

  • Deploy Tenant-Wide 

When uploading: 

Deploy to all sites

can be selected.

This enables the Application Customizer across the tenant without installing it individually on each site. 

Combining Hub Navigation with SPFx Branding 

A common enterprise architecture looks like this:  

Combining Hub Navigation with SPFx Branding

In this case, hub Navigation handles navigation consistency, while the Application Customizer provides branding and extensibility. 

Best Practices that We Follow

As professional SharePoint developer, here are some of the things that we follow: 

Keep Navigation Native

Avoid recreating navigation inside SPFx. Native Hub Navigation provides accessibility, responsive behavior, and Microsoft-managed updates. 

Store Configuration Externally

Keep logos, announcements, links, and colors in SharePoint Lists or Tenant Properties, so branding changes do not require code redeployment. 

Optimize Performance

Load only required assets, use lazy loading where appropriate, and minimize JavaScript execution during page initialization. 

Respect Microsoft’s Design System 

Use Fluent UI (Microsoft’s design system) and modern SharePoint styling guidelines instead of overriding built-in styles extensively. 

Support Responsive Layouts

Ensure custom headers and footers adapt cleanly to desktop, tablet, and mobile experiences.

Test Across Site Types

Validate branding on Communication Sites, Team Sites, Hub Sites, Site Pages, News Pages, Lists, Libraries, and Search results.

Discover More Possibilities with SharePoint Customization

Connect with our team today and discover more ways you can leverage modern SharePoint to develop a truly engaging and collaborative experience. 

Contact us