Skip to content

Latest commit

 

History

History
60 lines (38 loc) · 3.48 KB

File metadata and controls

60 lines (38 loc) · 3.48 KB
description
Link to a page, resource or website.

Link

The link property allows you to link to a page, resource or extrenal website. Elements will keep track and update all internally linked pages and resources.

{% embed url="https://youtu.be/mt-5Zhk3M7E" %}

Link Panel

You can apply the link panel on most components and inline text areas. Add a link click the "Choose Link…" button in the inspector. To clear a link click the "x" icon to the right hand side of the link button.

{% columns %} {% column width="50%" %}

Link

These settings define where image will be linked to. Click Choose Link… to select a destination. You can link to:

  • Any page within your project
  • An external URL
  • An email address (mailto:)
  • A file resource

Use the Clear (×) button to remove the link. {% endcolumn %}

{% column width="50%" %}

{% endcolumn %} {% endcolumns %}
Link TypesDescription
URLLink to an external website, a mailto link will automatically be created if an email address is entered.
PlainUsful for adding custom code, like PHP.
PageLink to a page within your project.
AnchorLink to an Anchor on the page. Anchor ID's can be set in the Advanced settings on all built-in Components.
ResourceLink to a resource within your project.

{% hint style="warning" %}

Disabling Smooth Scroll for Anchors

Element websites are configured to smooth scroll when navigating to an anchor. Smooth scroll can be disabled by removing the class="scroll-smooth" on the html tag in the site Template code. {% endhint %}

Custom Attributes

Custom attributes in an link (anchor tag) provide additional information about how the link behaves, where it directs, and how it interacts with other elements or the browser. Here's a selection of example custom attributes.

NameValueDescription
titleGo to Example WebsiteProvides additional information about the link, usually displayed as a tooltip when the user hovers over the link.
relnoreferrerEnsures that no referrer information (the URL of the current page) is sent to the destination.
relnofollowTells search engines not to follow this link for SEO purposes.
typeapplication/pdfSpecifies the MIME type of the linked resource. This is typically used when linking to downloadable files or specific content types. This example is for a pdf document.

Linking to an Anchor

  1. You first need to add an ID to the component that will serve as your anchor. The ID can be found in the Advanced section in the settings for the selected component.
  2. Then where you want to create your link in the text. Select the text, which will display the inline text
    • Click the LINK button in the inline text editor to open the link dialog.
    • If your anchor is on the same page, choose the page from the dropdown next to the link field.
    • This will display all available anchors in the Anchor popup.
    • Select the desired anchor, and you're done.

{% embed url="https://youtu.be/VEqrlcXydTs" %}