> This page is for Designer API.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.webflow.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.webflow.com/_mcp/server.

# Set display name (Beta)

> Set the Navigator display name of an element.

## `element.setDisplayName(displayName)`

Set the user-facing display name of an element shown in the Navigator panel.
Setting the display name to an empty string resets the element to its default name.

> **Beta**
>
> These methods are in public beta and may change with future releases.

## Syntax

```typescript
element.setDisplayName(displayName: string): Promise<null>
```

## Parameters

* **`displayName`**: `string` - The display name to set for the element.
  Pass an empty string to reset to the default name.

## Returns

**Promise\<`null`>**

A promise that resolves to `null`.

## Example

```typescript
// Get the selected element
const element = await webflow.getSelectedElement();

if (element?.displayName) {

  // Set a custom display name
  await element.setDisplayName('Hero Wrapper');

  // Reset to the default name
  await element.setDisplayName('');
}

// Bulk rename child elements for clarity
const root = await webflow.getRootElement();

if (root) {
  const children = await root.getChildren();
  for (let i = 0; i < children.length; i++) {
    if (children[i].displayName) {
      await children[i].setDisplayName(`Section ${i + 1}`);
    }
  }
}
```

## Designer Ability

| Designer Ability | Locale  | Branch | Workflow | Sitemode |
| :--------------- | :------ | :----- | :------- | :------- |
| **canDesign**    | Primary | Main   | Canvas   | Design   |