The Text Field attribute adds a single-line text input to your widget. In the Elementor editor, you type a short text there, for example a heading, a button label or a name. For longer text, use the Textarea attribute.
Step 1
Open the widget in the Widget Creator. In your WordPress dashboard, go to Unlimited Elements > Widgets and click Add Widget to create a new widget. To change one of your own widgets, hover over it and click the Edit Widget (pencil) icon.
Step 2
Open the Attributes tab. On the left, select the section where the attribute should appear: sections under Content are shown in the Content tab of the Elementor panel, and sections under Style in the Style tab. Then click Add Attribute.
Step 3
Click Attribute Type and choose Text Field in the Basic column. It is the type that is selected when the dialog opens.
Step 4
Fill in the attribute settings:
- Title: the label of the text input in the Elementor panel.
- Name: the name you use in the widget code. It is filled in from the title, for example
heading. - Description: a help text shown under the control.
- Enable Condition: shows the control only when another attribute has a chosen value. Select that attribute in Show When.
- Label Block: shows the label on its own line above the control.
- Tab: puts the control in a tab with this name, together with other attributes that use the same tab name.
- Default Value: the text the input starts with, for example
Our Services. - Allow Font Edit: as the dialog notes, lets you edit the font of this text in the font style tab. It works only when you output the attribute with
|raw. - Placeholder Text: a grey hint shown in the input while it is empty, for example
Enter a heading. - Disable Dynamic Icon: hides the dynamic tags icon next to the input. When it is off, you can fill the input with a dynamic tag, for example the post title.
Step 5
Open the HTML tab and output the attribute by its name, for example <h2 class="my-heading">{{heading}}</h2>. HTML tags written in the text are shown as plain text. To allow HTML tags, add the |raw filter: {{heading|raw}}. The attribute is also listed on the right side of the HTML tab.
Step 6
Click Update to save the widget. In the Elementor editor, the text input appears in the section you selected in Step 2.