How do I link to a specific part of another page?
You can use a link anchor to set a link that points directly at a certain section of a page. Upon clicking the anchor link, the user will be directed to the linked page, with the anchored section at the top of the window. This is especially useful if your linked page is lengthy.
Note - Anchor links are an advanced concept.
First, Create the Anchor in the HTML of the Destination Page
An example:
<a id="[this will come after the # in the link]" name="[this is an identifier]"></a>
Of course, replace the bracketed text above with the text relevant to your situation. Just paste it into the section of the page that you'd like to show at the top of the user's window. It would look something like this for our examples below:
<a id="GVS" name="GVS Series Pumps"></a>
Create the Link to the Anchor
Now that the anchor exists, you can link to it from anywhere. For this example, we'll link from another Content page, but this will work on the Home Page Editor, Category Headers section, or anywhere else where a link can exist.
Remember to link to a relative link when linking within your domain (/pumps/vacuumpumps rather than www.yourdomain.com/Pumps/VacuumPumps). When linking from an external source (email blast, social media, etc.) you will need a full link (www.yourdomain.com/pumps/vacuumpumps)
Creating a Link in the HTML
A standard link looks like this:
<a href="/pumps/vacuumpumps">View our Vacuum Pumps page!</a>
And the link to the anchor we just created will look like this:
<a href="/pumps/vacuumpumps#GVS">View out GVS Series Vacuum Pumps page!</a>
That whole section can be pasted into the code to create the link from the text between the > and the < characters.
Creating a Link in the Content Builder
- Highlight the text you'd like to make into a link.
- Click the "link" icon in the text editing menu bar.
The link creation popup box appears. Since we're linking to an internal page, the link URL will be relative, so enter /pumps/vacuumpumps#GVS then click "OK".
After you've finished editing the page, be sure to click "Save" then "Publish to Site" to write your changes to the website.
For more instructions on how to create a link from the Content Builder, see our article on Dealing With Links in the Content Builder here.