Adding Custom HTML Attributes

You can add custom HTML attributes to pages and page elements, which are rendered on the HTML tag of the page element. For example, this is useful when working with third-party frameworks that render page elements differently based on certain attributes.

Required Editions

Available in: Salesforce Classic

Available for purchase in: Enterprise, Performance, and Unlimited Editions

Available (with limitations) in: Developer Edition

User Permissions Needed
To build, edit, and manage Site.com sites:

Site.com Publisher User field enabled on the user detail page

AND

Site administrator or designer role assigned at the site level

When the page is open:

  1. Select the relevant page or page element in the Page Structure pane.
  2. In the HTML Attributes section of the Properties pane, click Add.
  3. Enter a name and value for the HTML attribute.
  4. Click Save.

To delete an HTML attribute, select it and click Delete.

To change the order in which an HTML attribute is rendered, select it and click Move up or Move down.