Help center

/

Documentation

/

Attributes Panel

Attributes Panel

Use the Attributes panel to add IDs, classes and other HTML attributes to a layer, set the alt and title text for its media, and add attributes to the element that wraps it.

Attributes Panel


Select a layer via the Canvas or Layers sidebar, and in the Right Sidebar click the Design icon to enter Design Mode, then:

  • Attributes panel
    • Layer Attributes Section
      • ID
      • Classes
      • Rel
      • Internal Classes
      • Tab Index
    • Media Attributes Section
      • Alt
      • Custom Alt
      • Title
      • Custom Title
    • Wrapper Attributes Section
      • Wrapper ID
      • Wrapper Classes

The Attributes panel is accessed by selecting a layer via the Canvas or Layers sidebar, and in the Right Sidebar clicking the Design icon 1 to enter Design Mode. Then click the Attributes tab icon 2 to open the Attributes panel.

Through the Attributes panel you add HTML attributes to a layer, so it can be targeted by your own CSS and JavaScript, and so its media carries the alt and title text you want. The panel divides into attributes placed on the layer itself, attributes describing the layer’s media, and attributes placed on the element that wraps the layer.

Layer Attributes Section

In the Layer Attributes section set the HTML attributes carried by the layer element itself.

ID (Text)


  • Visible when the selected layer is any type other than the Slide Background.
  • Hidden when the Slide Background is selected.

Set the HTML id attribute on the layer. An id has to be unique within the page, and gives your CSS or JavaScript a single reliable handle on this one layer.

Classes (Text)

Add one or more CSS class names to the layer. Separate several class names with spaces. Use this to style the layer from your theme’s stylesheet, or to hook it up to your own JavaScript.

Rel (Text)


  • Visible when the selected layer is any type other than the Slide Background.
  • Hidden when the Slide Background is selected.

Set the HTML rel attribute on the layer. The rel attribute describes how the linked resource relates to the document containing the link, and takes values such as nofollow, noopener and noreferrer.

Internal Classes (Text)

Add one or more CSS class names to the layer’s inner content element, rather than to the layer element that Classes targets. Separate several class names with spaces.

Tab Index (Text)


  • Visible when the selected layer is any type other than the Slide Background.
  • Hidden when the Slide Background is selected.

Set the HTML tabindex attribute on the layer, which decides where the layer falls in the order visitors reach when tabbing through the page with a keyboard. A value of 0 leaves the layer in the natural document order, a positive number moves it earlier, and -1 takes it out of tab navigation while still allowing focus to be set by script.

Media Attributes Section


  • Visible when the selected layer is an Image or Video layer, or when the Slide Background is selected.
  • Hidden when the selected layer is a Container, SVG Icon, Shape, Text, Audio, Group, Row or Column layer.

In the Media Attributes section choose where the alt and title text for the layer’s media comes from, and enter your own where you would rather not use the values already stored against the file.

Alt (Dropdown)


  • Visible when Media Attributes section is visible.
  • Hidden when Media Attributes section is hidden.

Choose the source of the layer’s alt text. Alt text describes the image to screen readers and appears in place of the image when it cannot be loaded, so it matters for both accessibility and search engines.

Options:

  • Custom: Use the text typed into Custom Alt.
  • From Media Library: Use the alternative text saved against the file in the WordPress media library.
  • Original: Use the alt text carried by the original file.

Custom Alt (Text)


  • Visible when Alt is set to Custom.
  • Hidden when Alt is set to From Media Library or Original, or when the Media Attributes section is hidden.

Type the alt text to use for this layer’s media. What is entered here applies to this layer only and does not change the alternative text stored against the file in the media library.

Title (Dropdown)


  • Visible when Media Attributes section is visible.
  • Hidden when Media Attributes section is hidden.

Choose the source of the layer’s title text. The title attribute is shown by most browsers as a tooltip when the pointer rests on the media.

Options:

  • Custom: Use the text typed into Custom Title.
  • From Media Library: Use the title saved against the file in the WordPress media library.
  • Original: Use the title carried by the original file.

Custom Title (Text)


  • Visible when Title is set to Custom.
  • Hidden when Title is set to From Media Library or Original, or when the Media Attributes section is hidden.

Type the title text to use for this layer’s media. What is entered here applies to this layer only and does not change the title stored against the file in the media library.

Wrapper Attributes Section

In the Wrapper Attributes section set the HTML attributes carried by the element that encloses the layer, rather than by the layer element itself. Use these where a style needs to sit on the outer element.

Wrapper ID (Text)

Set the HTML id attribute on the element wrapping the layer. An id has to be unique within the page.

Wrapper Classes (Text)

Add one or more CSS class names to the element wrapping the layer. Separate several class names with spaces.

In this article

back to overview