How to make a button link to a section on the page?

Author: Susan Tran 11344 views
Anchor links: link a button to any section on the page

Anchor links let shoppers jump to a specific section with one click instead of scrolling. For example, a Buy now button in your top banner can take visitors straight to the product section further down. This guide shows you how to connect a button to any section using a section ID.

1. Set an ID for the section

First, give the target section a unique ID. The button uses this ID to find the section.

Step 1: In the builder, select the section you want the button to jump to. To select the exact section, open the Navigator (Ctrl + Shift + U) and click the section name.

Select the Product Tabs section in the Navigator

Step 2: In the settings panel, open the Advanced tab, then expand Attributes.

Open the Advanced tab and expand Attributes

Step 3: In the CSS ID field, enter a unique ID, such as buy-now.

Enter a unique ID in the CSS ID field

Use lowercase letters, numbers and hyphens only, with no spaces. Each ID must be unique on the page.

2. Link the button to the section

Next, point the button to the section ID you just created.

Step 1: Select the Button element, then open the Content tab in the settings panel.

Select the Button element and open the Content tab

Step 2: In the Button link field, enter # followed by the section ID, for example #buy-now.

Enter # followed by the section ID in the Button link field

Step 3: Click Save, then preview the page and click the button to check that it scrolls to the right section.

Click Save in the builder

The ID must match exactly, including capitalization and hyphens. If the section ID is buy-now, the button link must be #buy-now.

1 Comment

  • Alfono

    September 16, 2023

    Thank you for this. Bless you

    Reply

Leave a Comment

Enjoy a free 3-day trial. Then get your first month for $1. Try Now.