Anchor, classes & attributes
Give one element an anchor ID, CSS classes and HTML attributes.
Every element can get an anchor ID to link to it, CSS classes, and HTML attributes. You find these in the Behaviour tab, in Anchor & classes and Attributes.
Anchor ID: link to a section
To link to a section of a page, for example from a menu item or a button:
- Select the section and open Behaviour → Anchor & classes.
- Type an Anchor ID, for example
contact(letters, numbers and hyphens, no#). - Link to it with
#contacton the same page, or/your-page/#contactfrom other pages.
With Smooth scrolling on in the Design System, the page glides to the section and stops below a sticky header. Elements have no ID unless you set one here, and each ID must be unique on the page.
CSS classes
CSS classes in Anchor & classes adds your own class names, separated by spaces, for example my-card is-featured. Use them to target the element from a popup trigger, an interaction, your theme's stylesheet or scripts from other plugins.
Every element already has two classes you can use: urmi-{type} (for example urmi-heading) and urmi-{id} with its unique ID.
These are plain class names. To share a style between elements, use classes in the Design tab instead.
Custom attributes
Custom attributes in Attributes adds HTML attributes to the element, one per line, as key|value:
Event handlers such as onclick are not allowed. Links have their own Custom attributes option in the link settings (the gear next to a link field).