Anchors allow you to link to a specific part of a page rather than the top of that page. For instance, if you have a page with multiple sections, you can add an anchor to the heading of each section allowing you to go directly to that area without having to scroll down. To create an anchor, first click the Anchor icon in the toolbar (the icon looks like a flag). When naming an anchor, the name must begin with "anchor_". Once you've created the anchor, you can then link to it by clicking the Link icon. If the anchor is on the same page, you would want to change the link type from URL to "Link to Anchor in the text". This will then give you a list of anchors on the page to choose from.
In this case, the anchor itself is named "anchor_destination". If you wanted to link to this anchor from another page, you could do so by copying its Path and adding "#anchor_destination" at the end, such as "/user-center/municipality-user-center/pages/using-anchors#anchor_destination".
The anchor was placed at the start of this line. In the edit screen, an anchor is denoted by a red flag. Keep in mind that if an anchor is placed towards the bottom of a page the link to the anchor will only scroll as far as the screen will let it and will not add any space below. Anchors can also go in both directions. For instance, the link below is connected to an anchor that was placed at the start of the Body area.
Comments
Let us know what was helpful or not helpful about the article.0 comments
Please sign in to leave a comment.