INSIDEA

How to Insert and Manage Anchor Links in HubSpot Pages

Jigar Thakker
Jigar Thakker
Chief Business Officer
··Updated October 20, 2026·8 min read
Share

To add an anchor link in HubSpot, open your page, post or knowledge base article, click a rich text module, and choose Insert > Anchor from the rich text toolbar to create the anchor. Then highlight the text you want visitors to click, click the link icon, and choose Link to > Anchor on this page. To link a button instead, enter # and the anchor name (for example, #pricing) in the Button module's URL field.

Checked against the HubSpot Knowledge Base on October 20, 2026.

Anchor links (also called jump links) send a visitor to a specific section of a page instead of the top. They work on website pages, landing pages, blog posts and knowledge base articles, and HubSpot lists the feature as available with all products and plans.

What is an anchor link?

An anchor link has two parts. The anchor is the marker in your content, the spot a visitor should land on. The link points to that marker using the # symbol followed by the anchor's name, such as #faq. When a visitor clicks it, the browser scrolls to the marker on the same page, or opens the other page and scrolls there.

In plain HTML, the marker is an element with an id attribute, and the link is an href that ends in #id. MDN's HTML reference says an id "must be unique within the entire document," and that one of its purposes is to identify a single element when linking with a fragment identifier. HubSpot's editor handles the HTML for you, so you never need to type it.

What you need before you start

ItemWhat HubSpot requires
SubscriptionAll products and plans
Pages and blog postsEdit permission to edit the rich text module
Knowledge base articlesService Access with the Knowledge base articles permission
Where anchors liveInside rich text modules
EmailsNot recommended, because some email clients may not support anchor links

How to create an anchor in HubSpot

Create the anchor first. You cannot link to a section until it has one.

  1. Open your content. For website pages, go to Content > Website Pages. For landing pages, go to Content > Landing Pages. For blog posts, go to Content > Blog. For knowledge base articles, go to Service > Knowledge Base. If your account shows a More menu, click it first.
  2. Click the name of the page, post or article.
  3. Click the rich text module where the section starts.
  4. In the rich text toolbar, click the Insert dropdown menu and select Anchor.
  5. In the pop-up box, enter a name for the anchor, such as pricing-plans, then click Insert.
  6. The anchor appears as a blue line with an anchor symbol. To move it, click it and drag it to a new spot in the content.

Place the anchor right before the heading of the section, so the heading sits at the top of the screen when a visitor lands.

HubSpot anchor naming rules

HubSpot's rules for anchor names are short:

  • The name must begin with a letter.
  • It can contain only letters, numbers, hyphens, underscores, colons and periods.
  • Separate multiple words with hyphens.
Anchor nameWorks?Why
pricing-plansYesStarts with a letter, words joined by a hyphen
faq.setupYesPeriods are allowed
step_2YesUnderscores and numbers are allowed
2026-pricingNoStarts with a number
pricing plansNoSpaces are not allowed
pricing&plansNoThe ampersand is not an allowed character

A good habit: keep every name lowercase and descriptive, and use each name only once per page. Then the link you type always matches the anchor you created, and two sections never compete for the same name.

How to link text to an anchor on the same page

  1. Open the page, post or article in the content editor.
  2. Highlight the text you want to turn into a link, such as an entry in your table of contents.
  3. In the rich text toolbar, click the link icon.
  4. In the pop-up box, click the Link to dropdown menu and select Anchor on this page.
  5. Click the Anchor dropdown menu, select the anchor, then click Insert.
  6. Click Publish or Update in the top right.

Because you pick the anchor from a dropdown, you avoid typos. If the anchor you want is missing from the list, create it first with Insert > Anchor.

How to link to an anchor on a different page

You can send visitors from one page straight to a section of another page, for example from a blog post to the FAQ on your pricing page.

  1. Make sure the anchor exists on the destination page.
  2. On the page where the link will live, highlight the text and click the link icon.
  3. In the Link to dropdown menu, select URL.
  4. Enter the full URL of the destination page, then the # symbol and the anchor name. HubSpot's example is https://mydemo-page.test/home#faq.
  5. Click Insert, then Publish or Update.

The same format works anywhere you can paste a URL, such as a social post or a sales email, because the browser reads the part after # and scrolls to it once the page loads.

How to link a button to an anchor

Buttons are the usual choice for a "See pricing" or "Jump to the form" call to action near the top of a long landing page. HubSpot documents this for website pages, landing pages and blog posts with a Button module in a drag and drop area.

  1. In the content editor, click the Add icon in the left sidebar.
  2. Expand the Forms and Buttons section, then drag the Button module into position.
  3. In the Button text field, enter the label visitors will see.
  4. In the URL field, enter # followed by the anchor name, such as #pricing-plans. To jump to a section on another page, enter the full URL, then # and the anchor name.
  5. Style the button on the Styles tab.
  6. Click Publish or Update in the top right.

One rule to remember for CTAs: HubSpot says anchor links added to CTAs must have the Track clicks through the browser option selected. If a CTA does not scroll, check that setting first.

Build a table of contents with anchor links

A table of contents is the most common use of anchor links. Here is the workflow in HubSpot:

  1. Add an anchor before each major heading, named after the section (overview, features, pricing, faq).
  2. At the top of the page, add a rich text module with a short list of the section names.
  3. Link each list item to its anchor with Link to > Anchor on this page.
  4. Optionally, add a small "Back to top" link after long sections that points to an anchor at the top of the page.

Keep the labels in the table of contents identical to the headings they point to. Visitors trust a menu that matches what they see when they land.

Fix an anchor hidden behind a sticky header

If your site has a fixed or sticky navigation bar, a jump can land with the section heading tucked under the bar. HubSpot's anchor article does not describe an automatic offset, so the fix is a line of CSS.

The CSS Scroll Snap specification from the W3C says scroll-padding affects scroll-into-view operations, and that scroll-margin adjusts the area used when a page is navigated to a fragment. In practice, one rule on the page covers every anchor:

html { scroll-padding-top: 90px; }

Set the value to the height of your header plus a little breathing room. To add it to one page, put the rule inside a style tag in the page's Head HTML: in the content editor, open the Settings menu, select Advanced, and paste it into the Head HTML field under Additional code snippets. To apply it to a whole domain, click the settings icon, go to Content > Pages, choose the domain, and add it in the Site Header HTML section. HubSpot notes that head and footer HTML options vary by subscription and content type, so your developer may prefer to add the rule to the theme stylesheet instead.

Want the jump to glide instead of snap? MDN documents scroll-behavior: smooth on the root element for scrolling triggered by navigation. Wrap it in a prefers-reduced-motion: no-preference media query so visitors who turned on reduced motion on their device are not affected.

Troubleshooting HubSpot anchor links

ProblemLikely causeFix
The link does not scroll to the sectionThe anchor name in the link does not match the anchorRe-link with Link to > Anchor on this page and pick from the dropdown
The anchor name has spaces or symbolsThe name breaks HubSpot's naming rulesStart with a letter, remove spaces and symbols other than hyphens, underscores, colons and periods
The page jumps to the wrong sectionThe same name is used twiceRename one anchor so each name is unique on the page
The heading lands under the menuA sticky or fixed headerAdd a scroll-padding-top rule as shown above
A CTA does not scrollClick tracking settingSelect Track clicks through the browser on the CTA
A cross-page link opens the page but does not scrollMissing # or wrong anchor name in the URLCheck the full URL, the # and the name on the destination page
Anchor links in a marketing email failEmail client supportAvoid anchors in emails, as HubSpot recommends

Always test on the published page, on desktop and on a phone, since the header height and layout can differ between the two.

Do anchor links help SEO?

Anchor links mainly help readers. They make long pages easier to scan and let you link other content straight to the answer a visitor needs. Keep the search side in perspective: Google's URL structure guidance says not to use fragments to change the content of a page, because Google Search generally does not support URL fragments. A #section link is a pointer into the same page, not a new page for Google to index. Use anchors to organize content that already lives on one URL, and give separate topics their own pages.

Track clicks on your anchor links

To see which sections visitors jump to, you can track clicks with a codeless custom event. HubSpot offers two codeless event types, Clicked element and Visited URL, on Professional and Enterprise tiers of Marketing Hub, Sales Hub, Service Hub, Data Hub, Content Hub, Smart CRM and Revenue Hub.

  1. Go to Data Management > Event Management.
  2. Click Create an event, then select Create custom event.
  3. Select Use visualizer, click Next, enter your page URL and click Done.
  4. Name the event and choose Clicked element.
  5. Click the target icon, select a table of contents link or button, choose where to track it, add a tracking name and click Next.

A single Clicked element event can track up to 30 elements, so one event can cover a full table of contents. The page must have the HubSpot tracking code installed. HubSpot does not list scroll depth as a codeless event type, so measure clicks rather than scrolling.

A worked example (hypothetical)

Imagine a software company with a long pricing page: plans, a feature comparison, implementation details and an FAQ.

  1. The marketer adds four anchors in the page's rich text modules: plans, compare, implementation and faq.
  2. Under the hero, a short table of contents links to each one with Link to > Anchor on this page.
  3. The hero's Button module gets #plans in its URL field, so "See plans" scrolls straight to pricing.
  4. The site has a 72-pixel sticky header, so the developer adds html { scroll-padding-top: 90px; } to the page's Head HTML.
  5. A blog post about onboarding links to the full pricing page URL followed by #implementation, so readers land on the implementation section.
  6. A Clicked element event tracks the four table of contents links, and the team checks which sections get the most jumps before deciding what to move higher on the page.

Getting help with HubSpot pages

INSIDEA is an Elite HubSpot Partner and the growth operating system for modern businesses. If your HubSpot pages need clearer structure, cleaner templates or better tracking, our HubSpot team can work through it with you.

Frequently asked questions.

How do I add an anchor link in HubSpot?

Open the page, post or knowledge base article, click a rich text module, and choose Insert > Anchor in the rich text toolbar to name the anchor. Then highlight the text to link, click the link icon, choose Link to > Anchor on this page, select the anchor and click Insert. Publish or update the content when you finish.

How do I link to an anchor on another HubSpot page?

Highlight the text, click the link icon, and choose Link to > URL. Enter the full URL of the destination page followed by # and the anchor name, for example https://example.com/pricing#faq. The anchor must already exist on the destination page.

How do I make a HubSpot button scroll to a section?

Add a Button module from the Forms and Buttons section of the editor's Add sidebar. In its URL field, enter # followed by the anchor name, such as #pricing, or the full page URL followed by # and the name for another page. For CTAs, HubSpot requires the Track clicks through the browser option.

Why is my HubSpot anchor link not working?

The most common causes are a link that does not match the anchor name, a name that breaks HubSpot's rules (it must start with a letter and use only letters, numbers, hyphens, underscores, colons and periods), or the same name used twice on one page. If the section lands under your navigation bar, add a scroll-padding-top CSS rule. Anchor links in emails may not work in some email clients.

Can I use anchor links in HubSpot blog posts and knowledge base articles?

Yes. HubSpot supports anchors in rich text modules on website pages, landing pages, blog posts and knowledge base articles, with the same Insert > Anchor steps. Blog posts are under Content > Blog and knowledge base articles under Service > Knowledge Base. Editing knowledge base articles requires Service Access with the Knowledge base articles permission.

From the team who does this daily

Want this applied to your HubSpot?

INSIDEA is an Elite HubSpot Partner, rated 4.99 across 500+ verified reviews.

Jigar Thakker
Jigar Thakker
Chief Business Officer

Jigar Thakker is a HubSpot Certified Expert and CBO at INSIDEA. With over 7 years of expertise in digital marketing and automation, Jigar specializes in optimizing RevOps strategies, helping businesses unlock their full potential. A HubSpot Community Champion, he is proficient in all HubSpot solutions, including Sales, Marketing, Service, Content, and Data Hubs. Jigar is dedicated to transforming your RevOps into a revenue-generating powerhouse, leveraging HubSpot's unique capabilities to boost sales and marketing conversions.

Connect on LinkedIn →

Want this applied to your business?

Book a strategy call. 30 minutes, real working session, written one-pager delivered after.

Get Started
With Us

Book a demo and discovery call to get a look at:

How INSIDEA works
The subscription plan that best fits your needs
Pricing, onboarding, and anything else
HubSpotSalesforcePipedriveAircallApolloTrustpilot

Book a Call With Us

By clicking Book a strategy call, you agree to receive communications from INSIDEA in accordance with our Privacy Policy.