Attributes

The Attributes property allows you to add extra data to your block. You can add a Name, choose a Source (static or dynamic) and specify a Value for the input element.

Attributes are also useful for searching and filtering.

Add

  • Select a block.

  • Open the Advanced tab.

  • Open the Attributes tab.

  • Click "➕" icon.

  • This will open the Attributes Panel where you can add a Name, choose a Source and add a Value for the required element.

Name

The Name attribute allow us to give a Name to an attribute.

  • Select a block.

  • Open the Attributes tab.

  • Click "+" icon to add an Attribute.

Source

Source attributes can either be Static or Dynamic.

Static attributes are built into the code and cannot be modified or removed. Dynamic attributes allow you to add or delete attributes.

  • Select a block.

  • Open the Attributes tab.

  • Click "+" to add an attribute.

  • Select Source (Static or Dynamic).

Value

The Value attribute specifies the value of an input element. The Value depends on whether the Source is Static or Dynamic.

Static Value

Static Value may be no value, attribute, text, html, query and meta.

Dynamic Value

Allows you to set the Dynamic Value to Unset, Wordpress, or ACF.

WordPress

Allows you to select the required WordPress data in the dropdown.

  • If Shortcode is selected, input required Shortcode.

ACF

Allows you to select the required ACF Group, Field and Location.

  • With certain locations, imput ID.

Last updated