top of page

Create External Links to Sections and Anchors

Create External Links to Sections and Anchors

Wix Fix

Jun 16, 2023

9

Tags:

In today's video, you will learn how to generate custom links for sections and anchors in Wix to use externally and/or share on social media!


This will allow you to link directly to a specific section on a specific page (not just the page).

To create external links to sections and anchors within a webpage, you can follow these steps:


  1. Identify the target section or anchor: Determine the specific section or anchor within the webpage that you want to link to. An anchor is usually denoted by an HTML element with an "id" attribute, like <div id="section-anchor">.


  2. Get the URL of the webpage: Note down the URL of the webpage where the section or anchor is located. For example, https://www.example.com/page.

  3. Construct the link: Combine the URL of the webpage with the specific section or anchor identifier. Use the hash symbol "#" followed by the section or anchor ID. For example, https://www.example.com/page#section-anchor.


  4. Add the link to your content: In your content (webpage, document, or other), create the hyperlink text or element that users can click on to navigate to the target section or anchor. Use the constructed URL as the destination of the link. For example, <a href="https://www.example.com/page#section-anchor">Go to Section</a>.



When users click on the created link, they will be directed to the specified section or anchor within the target webpage.


Remember, the availability of sections and anchors within a webpage depends on how the page is structured and whether appropriate IDs are assigned to the relevant elements.

Related videos

bottom of page