Anchor Links

Anchor links are links that will take you to a specific place on a page. For example, for a long webpage, you might have a table of contents that uses anchor links to help users 'jump' to a certain section. 

On this page: 

  1. How to Create an Anchor Link
  2. How to Link to an Anchor Link
  3. FAQs 

How to Create an Anchor Link 

Creating an anchor link is a simple process that can be done from any WYSIWYG field on your site: 

  1. Place your cursor next to the text that you want to be able to jump to
  2. Click the anchor link button (the flag icon, next to the link button in the WYSIWYG toolbar)
      

    Image
    A screenshot showing the anchor link button on the WYSIWYG toolbar.


     

  3.  Enter an ID for your anchor link. The ID should be descriptive, but concise. The ID cannot contain spaces, but hyphens and underscores can help split up words. IDs are also case-sensitive. 
      

    Image
    A screenshot showing how in input an anchor link ID, with the name Anchor_Link.
  4. Click the green checkmark to save. Now you have an anchor that you can link to! 

    invisible anchor link text

How to Link to an Anchor Link 

Once you've created an anchor link, you can use it to link a user to that content. To link to an anchor: 

  1. Go to the text you want to link to the anchor 
  2. Highlight your text
  3. Select the Link button on the WYSIWYG toolbar.
  4. Image
    A screenshot showing highlighted text and the link button on the WYSIWYG toolbar.
  5. Type your anchor link ID into the URL box. Preface the ID with a # symbol.
      
  6. Image
    A screenshot showing how to input an anchor link, with the example #Anchor_Link.
  7. Click the green checkmark to save you link. Now the link text will take users directly to you anchor link.

The above steps work for anchors on the same page as the link. If you want to link to an anchor on a different page, the steps are a little different: 

  1. Follow steps 1 to 3 to add a hyperlink to your text 
  2. Instead of just adding the ID to the URL box, you'll need to include a link to the page the anchor is on first.
      

    Image
    A screenshot showing how to add a link to a page, with the example /node/39 used.
  3. Once you have the page link in the URL box, you can add a # immediately following it, along with the ID.
      

    Image
    A screenshot showing how to add an anchor link to the end of a page link, with the example /node/39#Anchor_Link
  4. Click the green checkmark to save your link. Now the link text will take users directly to your anchor link.

 

FAQs