Register for a Free Account
Name
Email
Choose Password
Confirm Password

Using Anchor Tags for Linking to Page Sections

What Are Anchor Tags?

Anchor Tags are used like bookmarks throughout your site. You can set links on your site to bring your users to specific sections of specific pages, which helps a user to find the exact information that they are interested in.

Steps for Adding Your Anchor Tag

  • Make sure that you are logged into your Site Stacker installation.
  • Find the page and section that you would like to have the Anchor Tag linked to.
  • Depending on the section you would like visitors to see, right-click on the content item for that section and choose Show in Explorer.
  • Drag and drop that same content item above your existing one, but with the Anchor (Base) View. The Anchor view creates the anchor from the item's alias.

Linking to Your Anchor Tag

  • Now that you have set up your Anchor Tag, it is time to add the link!
  • Find the menu that you would like to set up the link in.
  • Right-click and choose 'Manage Menu Items'.
  • Right-click and choose 'Add' to add the link, which will be input into the Custom Link field.
  • Please note that the alias of your Anchor item in Site Planner will be used in the URL to link to (This is what refers to the specific section of the page).

Example: Your URL should look something like this if the alias for your item is test-123: https://mission.org/test-page#test-123

It is important to have the # symbol and to type the alias exactly.

  • Once you have set up the link, choose 'Save & Close' on both the 'Add Link' and 'Edit Menu' windows.
  • You can now test if your link is working properly by opening the page with your menu in a browser tab (or right-clicking the page in the Site Plan and clicking Preview), clicking the link and seeing where it takes you!

Setting Up the Custom Link for an Anchor Tag

What Your Page URL Will Look Like When Link is Clicked

Another way: an anchor inside a Static item's body

  • On the 'Content Explorer' side, navigate to the 'Static' folder. Right-click 'Static' and click 'Add Item' to create a new Static content item.
  • In the Body text field of the new Static item, click the Anchor icon on the toolbar. When inserting this new anchor, name it in a way that will let you know what section it should link to (for example, sitestacker-training-section).
  • Once you have inserted this anchor, click 'Save & Close'. Then drag this new static item over to the 'Site Plan' side, into the page where you want to direct a user, so that it sits above the section you would like the anchor to point to.
  • Point your menu item or hyperlink at the anchor by adding it to the page URL, for example: www.exampleurl/#sitestacker-training-section

If you have questions on this topic, then please contact our Support Team. We are always glad to help!