Action Required: Mandatory Salesforce Sites security configuration update

Sorry, we didn't find any relevant articles for you.

Send us your queries using the form below and we will get back to you with a solution.

How to make a button scroll to any section on the page

Guide users smoothly to key sections with one click

⚠️ Note

This article is intended for advanced users who are comfortable editing HTML. If you're unsure, we recommend working with someone on your team who has HTML experience — or using built-in scroll options like scrolling to the donation form.

 

Want to scroll donors to a specific section on your campaign page — like a video, testimonials, or FAQ? You can do this by assigning an anchor ID to a section and linking a button to it.

This creates a smooth on-page navigation experience without needing any code knowledge.


🛠️ Step 1: Assign an ID to the Target Section

  1. In the Page Builder, click on the section you want to scroll to
  2. Click the <> (code) button to open the HTML editor
  3. In the section's main <div> or <section> tag, add a unique id attribute. Example:
<section id="share">
  1. Click Save to apply the change

🔐 Make sure the ID is unique on the page — use only lowercase letters, numbers, underscores, or hyphens.

🖱️ Step 2: Set Up the Scroll Button

  1. Click the button you want to use for scrolling
  2. In the right-hand panel, find the Action section
  3. In the URL field, enter the # followed by your section’s ID

Example: #share 

✅ Save and Test the Scroll Behavior

  1. Click Save
  2. View your live page
  3. Click the button — the page should smoothly scroll to the section you targeted

Updated at July 15th, 2025

Was this article helpful?