Webflow sync, pageviews & more.
NEW

How do I create anchor links in the tab bar using Webflow?

TL;DR
  • Assign unique IDs to target sections using the Element Settings Panel.
  • Replace default Tab functionality by removing tab panes or using link blocks in the tab bar.
  • Set each tab link to "Page Section" and link it to the appropriate section ID.
  • Preview the site to ensure smooth scrolling to anchored sections works as intended.

To create anchor links in the Tab bar in Webflow, you need to ensure that each tab links to a specific section (anchor) on your page using proper linking and IDs.

1. Add Unique IDs to Sections

To use anchor links, the elements you want to scroll to must have unique ID attributes.

  • Select the section or element you want to scroll to.
  • In the right-hand Element Settings Panel, find the ID field under "Element Settings."
  • Enter a unique ID (e.g., "about", "services", etc.).
  • IDs should be lowercase, contain no spaces, and must not start with a number.

2. Build a Tab Component

Use Webflow’s Tab component to set up your tab bar.

  • Drag a Tabs element from the Add panel onto your page.
  • Inside the Tabs component, you’ll see Tab Menu, Tab Panes, and Tab Links.
  • The Tab Link is what users will click to open a tab.

Webflow’s Tab Links usually switch tab content inside the component. To make them scroll to an anchor instead:

  • Remove the default Tab functionality:

  • Select the Tab Component.

  • Delete the internal Tabs element if you’re not using tab panes.

  • Alternatively, if you're just using the tab bar as a navigation menu, you can use regular link blocks or buttons inside your tab bar.

  • Convert Tab Links to Anchor Links:

  • Select the element inside the tab bar (e.g., text or button).

  • Go to the Element Settings Panel.

  • Change the link type to "Page Section".

  • From the dropdown, select the element ID you added in Step 1.

4. Test Scrolling Behavior

Preview your site and click on the tab link. It should smoothly scroll to the anchored section. If smooth scrolling isn’t enabled:

  • Go to Project Settings > Custom Code, and ensure you're not overriding scroll behavior with conflicting code.
  • Webflow automatically applies smooth scrolling for internal links within the same page.

Summary

To create anchor links in a Tab bar in Webflow, replace the tab-switching behavior with internal anchor links by assigning unique IDs to target sections and modifying the tab links to scroll to those sections. Avoid default tab functionality if you just want anchor navigation.

Rate this answer

Other Webflow Questions