Others

Can SharePoint Page Sections Be Added to Site Navigation?

Phi Hung VoPhi Hung Vo Nov 3, 2026 870 views

Question details

The user wants to know if they can link directly to a specific section of a SharePoint page from the main site navigation menu and asks if any workarounds exist.

Can SharePoint Page Sections Be Added to Site Navigation?
Product
SharePoint Online
Device & OS
not provided
Scenario
Customizing the site navigation menu to include quick links that jump to specific sections on a modern SharePoint page.
Observed behavior
SharePoint Online does not natively support adding page-section anchors directly into the global site navigation menu, and custom JavaScript modifications are not permitted in modern page layouts.
Before you start

Ensure you have Site Owner or Editor permissions to modify the site navigation, and that the page you want to link to is fully published.

Solution 1Recommended

Use Custom Links in Site Navigation via Heading Anchors

While there is no native interface to select a section directly from the navigation editor, you can manually copy a heading's anchor link and add it as a custom URL to your site navigation.

Modern SharePoint automatically generates anchor links for H1, H2, and H3 headings placed inside standard Text web parts.

By copying these links, you can paste them into the navigation menu as standard hyperlinks. Keep in mind that clicking an anchor link from another page will load the page and jump to the section, but navigating from the same page may require a manual page refresh depending on your SharePoint environment.

1
Format headings on your page

Edit your SharePoint page, add a Text web part, and style your target text using the Heading 1, Heading 2, or Heading 3 formats.

2
Publish and copy the anchor link

Publish or save the page as a draft. Hover your cursor over the heading text to reveal a link icon. Right-click the icon and copy the link address.

3
Edit site navigation

Click 'Edit' on your site's main navigation menu (usually on the left or top). Click the '+' icon to add a new navigation node.

4
Add the custom URL

Choose 'Link' as the option, paste the copied anchor link into the Address field, enter a Display Name, and click 'OK'. Save your navigation menu.

Use Custom Links in Site Navigation via Heading Anchors
Limitations of Custom Links: Because modern SharePoint handles page routing dynamically, clicking an anchor link in the main navigation while already on the target page might not smoothly scroll to the section. It works best when navigating from a different page.
Free Microsoft Office alternative

Boost Your Productivity with WPS Office

While SharePoint navigation requires specific workarounds, your daily document management doesn't have to be complicated. If you are looking for a reliable, fast, and free alternative to Microsoft Office for creating Word documents, Excel spreadsheets, and PowerPoint presentations, WPS Office is an exceptional choice.

  1. 1. Download and install: Get WPS Office for free from the official website and install it on your device (Windows, Mac, Linux, iOS, or Android).
  2. 2. Open existing Office files: Open your standard .docx, .xlsx, or .pptx files directly in WPS Office without worrying about formatting loss.
  3. 3. Work seamlessly: Enjoy a familiar interface that requires zero learning curve, allowing you to focus completely on your work.
Free, lightweight, and easy-to-use Office suiteFully compatible with Microsoft Word, Excel, and PowerPoint formatsAll-in-one workspace with tabbed document managementBuilt-in PDF editing and seamless document conversion
microsoft office alternative - wps office

Frequently Asked Questions

Why don't my SharePoint headings generate anchor links?

Anchor links are only generated automatically for standard Text web parts formatted as Heading 1, Heading 2, or Heading 3. Ensure you are not using a custom web part or title area, and verify that the page is saved or published before hovering to see the link.

Can I use custom JavaScript to fix page section navigation in SharePoint Online?

No. While custom JavaScript could modify page behavior in older classic SharePoint versions, modern SharePoint Online page layouts cannot be modified with custom scripts for security and stability reasons.

Do anchor links in SharePoint work on mobile devices?

Anchor links generally work on mobile web browsers, but their behavior can be inconsistent inside the dedicated SharePoint mobile app. Always test your jump links across devices to ensure the best user experience.