Others

Change a SharePoint Online Web Part Header Color

Ayan MasoodAyan Masood Nov 22, 2026 868 views

Question details

The user wants to change the color of an individual web part header in SharePoint Online.

How to Change a SharePoint Online Web Part Header Color
Product
SharePoint Online
Device & OS
not provided
Scenario
Customize a web part header on a classic or modern SharePoint site.
Observed behavior
SharePoint Online does not generally provide a built-in setting for the color of an individual web part header.
Before you start

Determine whether the page uses the classic or modern SharePoint experience, and check that you have permission to edit the page or manage site branding. Modern pages show an Edit button and use a different customization model from classic pages.

Solution 1Recommended

Use supported appearance options on a modern SharePoint page

Use site themes or section backgrounds for broader color changes, or build a custom web part when an individual header needs its own color.

Modern SharePoint does not generally offer a per-header color control. Site themes and section backgrounds affect more than one header, and their effects vary by web part.

For precise control, a developer can create a SharePoint Framework (SPFx) web part with a header styled in its own component. Avoid CSS that targets undocumented classes in built-in modern web parts, because SharePoint updates can change them.

1
Check the site theme

On the site, select Settings > Change the look > Theme, choose an available theme, and apply it. Check whether its colors meet your needs.

2
Try a section background

Open the page and select Edit, then select Edit section for the section containing the web part. Choose an available background and preview the result before publishing.

3
Check web part options

While editing the page, select the web part and open its Edit web part pane. Review its available appearance settings; options vary and may not include header color.

4
Use SPFx for a custom header

If a distinct header color is required, ask a SharePoint developer to create and deploy an SPFx web part with its own styled header, then add it to the page through the web part picker.

Use supported appearance options on a modern SharePoint page
Deployment permissions: Deploying an SPFx solution requires access to an appropriate SharePoint app catalog and may require administrator approval.
Free Microsoft Office alternative

Prepare SharePoint Page Content With WPS Office

WPS Office is a free, lightweight alternative for drafting and reviewing content before adding it to a SharePoint page. Its familiar interface and Microsoft Office format support make it easy to move existing files into your workflow. WPS does not change SharePoint web part styling.

Draft web part headings and page content in WPS WriterOpen and edit Microsoft Word DOCX filesUse a familiar interface to work with existing Office documentsUse a lightweight office suite with free tools
microsoft office alternative - wps office

Frequently Asked Questions

Can I change just one modern web part header color in SharePoint Online?

There is generally no built-in control for an individual header color. Check the web part's Edit web part pane for available options, or use a custom SPFx web part if you need precise control.

Will changing the site theme affect other parts of the site?

Yes. Settings > Change the look > Theme applies a site-wide theme rather than a color to one header. The visible effect depends on the page and web parts.

Can I use custom CSS on a modern SharePoint page?

Avoid targeting undocumented classes in built-in modern web parts, because updates can break those selectors. For controlled styling, a developer can use SPFx to build a custom web part with its own styles.

Why can't I find Alternate CSS URL on my classic site?

That option depends on the site's features and your permissions. Check Site settings > Master page if it is available, or ask your SharePoint administrator about the site's approved customization method.