How to set up Anchor links

Created by Andrew Jot, Modified on Sun, 22 Mar at 12:09 PM by Andrew Jot

This article explains how to create anchor links in the Dealer Studio Page Editor. Anchor links allow users to click a button and automatically scroll to a specific section on the same page. This is commonly used for sections such as Contact Us, Vehicle Enquiry, or Finance Options.

Before setting up anchor links, you must first access the Page Editor and add a button that will act as the link.


Video

Please refer to the attachment below for a visual walkthrough of how to set up anchor links.


Overview - Set Up Anchor Links

  • Step 1: Access the Page Editor
  • Step 2: Add a Button to Your Page
  • Step 3: Configure the Anchor Link
  • Step 4: Add an Anchor Point to a Component
  • Step 5: Publish and Test the Anchor Link

Step 1: Access the Page Editor

  1. From the Dealership Dashboard, select Websites.
  2. Select the website you want to edit.
  3. On the Website Dashboard, click Pages.
  4. Select the page you want to edit.


Step 2: Add a Button to Your Page

  1. Navigate to the area of the page where you want the button to appear.
  2. Hover your mouse on the left-hand side of the page until the + icon appears.
  3. Click the + icon.
  4. Scroll down and select Buttons.

A generic Contact Us button will appear on the page.


Step 3: Configure the Button

  1. Hover your mouse on the left side of the button until the 6 dots icon appears.
  2. Click the 6 dots icon.
  3. Select Edit Settings.

A settings panel will open where you can customise the button:

  • Button text
  • Shape (e.g., rounded buttons)
  • Colour
  • Link URL
  • Custom Classname

For more details on button settings, refer to the article: Adding Buttons via Page Editor.


Step 4: Add Classname to the Button

To create the anchor link:

  1. In the same settings for buttons, remove the Link URL.
  2. In the Custom Classname field, enter the following format:
    #referenceName

Example:

#form-section

This identifies the button as the anchor link trigger.




Step 5: Add an Anchor Point to a Component

Next, you must define the location where the page should scroll to.

  1. Navigate to the section of the page where you want users to land.
  2. Hover your mouse on the left side until the + icon appears.
  3. Add the desired component if it does not already exist. For eg: Form Builder component
  4. Hover your mouse on the left side of the component until the 6 dots icon appears.
  5. Click the 6 dots icon and scroll to the Classname field.

Enter the following format:

id-referenceName

Example:

id-form-section


Step 6: Publish and Test the Anchor Link

  1. In the top right corner of the page editor, click Publish.
  2. This will save your changes and update the live page.
  3. Visit the live website and click the button to confirm the anchor link scrolls to the correct section.


Important

For anchor links to work correctly:

  • The button must use the format:
    #referenceName-anyName
  • The target component must use the format:
    id-referenceName-anyName

Both reference names must match. Example:

  1. Button:
    #contact-anyName
  2. Target Section:
    id-contact-anyName

When the button is clicked, the page will automatically scroll to the target section.


How It Works?

Anchor links connect a button trigger to a target component on the same page.

  • The button uses # to define the anchor link.
  • The target component uses id- to define where the page scrolls to.

As long as the reference names match, the button will direct users to the correct section.




Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article