Custom attributes

Last Update: September 25, 2026

With Elementor Pro, you can add custom attributes to the wrapper of every Section, Column or Widget. This enables the addition of data-* attributes, ARIA attributes (accessibility) and values, header, footer, sidebar, rel=*, and other attributes that can be found here: https://www.tutorialspoint.com/html5/html5_attributes.htm

Add Custom Attributes to Sections, Columns, or Widgets (Upto V3)

  1. Right-click on the edit button of the element and click Edit section to open the section’s settings panel. Likewise, if editing a Widget, right-clicking will show the option to Edit Widget, and editing a Column will show Edit Column.

  2. Go to Advanced > Attributes

  3. Add your code for the element to the editor, using the format key|value. For example, to add role=”presentation” to the element’s HTML, enter role|presentation here.

Tip: Set custom attributes for the wrapper element, with each attribute in a separate line. Separate attribute key from the value using the | character. If you need to add multiple properties for one attribute, use a space between them.

Example of one property for one attribute:

data-spots|round

Example of two properties for one attribute:

data-spots|round long

pasted-image-1789671029551

In this example, data-spots is our custom attribute, and round and long are the properties of the attribute. When you view the source code that is output, it will look like this:

data-spots=”round long”

Add Custom Attributes in Elementor Editor (v4)

In Elementor Editor V4, custom attributes are managed directly through the General tab for atomic elements.

How to Add Custom Attributes in V4

  1. Select the element on the canvas that you want to add an attribute to.

  2. In the left panel, switch to the General tab.

  3. Scroll down to the Attribute section at the bottom and click the + (Plus) icon.

  4. Name: Enter the attribute key/name (dynamic tags are supported).

  5. Value: Enter the attribute value (dynamic tags are supported).

pasted-image-1789671198114

How to Remove / Delete an Attribute

  1. Select the element and open the General tab.

  2. Scroll to the Attribute section at the bottom.

  3. Hover over the attribute you want to remove.

  4. Click the X icon to delete it.

pasted-image-1789671225215

Have more questions?

Can’t find the answers you’re looking for? We’re more than happy to assist.

Contact support

Related Articles

On this page

Share this article