Category connection

Set an element ID and use it to create an anchor link that takes you to a section on a page.

Category connections or marker links allow you to associate with specific segments or components on your website. To generate a marker link for a category, you’ll first have to establish an element ID on that category.

Remark: An element ID can also be utilized in personalized code to indicate a style in a style sheet or to operate a particular component with JavaScript. Nevertheless, the most frequent utilization for an ID is in category connections or marker links to diverse divisions on a page.

In this session, you’ll understand:

  1. How to assign an element ID
  2. How to set up a category connection
  3. How to connect to a category on a separate page
  4. How to connect to a category on the front page

How to assign an element ID

You can designate an ID to any selected element.

  1. Choose the element that should be allocated the ID
  2. Expand Element settings panel and enter a unique ID in the ID field
Remark: An element ID must consist of at least one character and must not contain any blank characters. Furthermore, an element ID needs to be unique for each element. Learn more about rectifying duplicate element IDs.
An example ID named "Magic-section" is appended to the Section's settings in the Element settings panel.

How to set up a category connection

  1. Choose the connection element that you wish to guide you to a section on your page
  2. Expand Elementsettings panel > Link settings
  3. Select the Page section button
  4. Choose the Section dropdown menu and select the ID you recently established (e.g., “Magic-section”)
The "Magic-section" instance ID is a choice in the Section dropdown in the Link settings section of the Element settings panel.

How to connect to a category on a separate page

If you desire a link element, such as a button, to direct to a category on a different page (excluding the front page):

  1. Expand Element settings panel > Link settings
  2. Choose the URL link style
  3. Input the URL of the page where the category exists followed by “#” and the element ID you designated to that category

Here’s how your marker links would seem:

  • a page in your ongoing site: site.com/page#section-ID
  • if your page is nested in a directory: site.com/folder/page#section-ID
  • a marker link on another webpage: site.com/folder/page#section-id
  • a front page marker link would look like: site.com/#section-id

Illustrations

On this page, we have 4 category connections that link to the 4 article divisions on this page.

  1. How to assign an element ID
  2. How to set up a category connection
  3. How to connect to a category on a separate page
  4. How to connect to a category on the front page

To guide to the concluding section of this page, the URL is: https://university.webflow.com/lesson/section-link#how-to-link-to-a-section-on-the-homepage

An example URL for a button is set to "site.com/page#Section-ID" in the Link settings section of the Element settings panel.

How to connect to a category on the front page

To link to a category on your front page, the page title is not essential in the marker link URL. Instead, insert the front page domain followed by “#” and then the category ID. (e.g., A front page marker link would look like: site.com/#section-id)

Ewan Mak
Latest posts by Ewan Mak (see all)