This done with an Anchor, first creating an anchor on a page in a Content Block and then creating a link to it.
1. Add an Anchor in a Content Block
- On the Pages list, click a page name to open the Page Editor.
- On the Page Editor click the Edit icon for a Content Block.
- Click the View HTML icon (“</>” button in the editor toolbar) to enter Code View.
- Locate the element (heading, paragraph, image, etc.) you want to anchor to.
- Add an “id” attribute to its HTML tag, for example:
- For a text heading:
<h2 id="program-details">Program Details</h2>
-
- For an image:
<img src="/images/team.jpg" alt="Our Team" id="team-photo">
- Click the Done button to close Code View.
- Click the Save button in the Content Block editor to save your changes.
- Click the Publish button in the Page Editor to publish the page.
Now there is an anchor you can link to.
2. Linking to an Anchor
- On the Pages list, click a page name to open the Page Editor.
- On the Page Editor click the Edit icon for a Content Block.
- Highlight the text or select the image you want to make into a link.
- Click the Link icon in the editor toolbar, and you are now on the Insert a Link form.
- Click the Select Page or Content button below the Link to field and select the name of the page you are editing.
- Use the search box to narrow the list of pages
- There will be a red lock icon next to the name as you are editing the page.
- Click to highlight the page name and click the Use Selected button.
- Expand More Options at the bottom of the form.
- In the Anchor field, type the name of the anchor; use the value you set for the “id” attribute.
- Click the Save button in the Content Block editor to save your changes.
- Click the Publish button in the Page Editor to publish the page.
Clicking the link will now jump to the anchored content on the page.
Best Practices:
- Use lowercase and hyphens for IDs (e.g., contact-us).
- Ensure IDs are unique per page.
- Test links after publishing; they should scroll to the anchored content.