The Text Shadow attribute adds the Elementor Text Shadow control to your widget. In the Elementor editor, you set the shadow color, blur and offset, and the widget applies the shadow to the text elements you choose with a CSS selector. You don’t need to write any CSS for it.
Text Shadow is available in the free version of Unlimited Elements too.
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. Text Shadow usually goes in a section under Style. Then click Add Attribute.
Step 3
Click Attribute Type and choose Text Shadow in the Css column.
Step 4
Fill in the attribute settings:
- Title: the label of the text shadow control in the Elementor panel.
- Name: the name of the control. It is filled in from the title, for example
title_shadow. - Enable Condition: shows the control only when another attribute has a chosen value. Select that attribute in Show When.
- CSS Selector: the text element that gets the shadow, for example
.ue-title. The selector works only inside this widget.
Step 5
Open the HTML tab and add the class from the selector to your text element, for example <h3 class="ue-title">{{title}}</h3>. The Text Shadow attribute doesn’t output anything in the HTML. Elementor adds the CSS for the selector, for example text-shadow: 0px 0px 10px rgba(0,0,0,0.3);.
Step 6
Click Update to save the widget. In the Elementor editor, the text shadow control appears in the section you selected in Step 2, with the title as its label. Click the pencil icon to open it and set Color, Blur, Horizontal and Vertical. The screenshot shows the Title Shadow control of the Icon Box Accordion widget.