For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Resources
Get started
ReferenceGuidesExamplesChangelog
ReferenceGuidesExamplesChangelog
  • Designer API
    • Introduction
    • Getting Started
    • Webflow CLI
    • Error Handling
    • App Modes
  • Elements
    • Creating & Retrieving Elements
    • Element Properties & Methods
    • Element Types & Methods
  • Styles
    • Managing Style Properties
    • Managing Variable Modes
  • Components
  • Variables & Collections
    • Variable Collections
    • Variables
    • Variable Modes
  • Assets
  • Pages & Folders
      • Page information
        • Get page name
        • Set page name
        • Get page title
        • Set page title
        • Get page slug
        • Set page slug
        • Get page description
        • Set page description
        • Get publish path
        • Get page category
        • Get utility page key
        • Get collection ID
        • Get collection name
      • Page settings
  • Utilities
    • User Events & Notifications
    • App Intents & Connections
  • Additional Resources
    • API Playground
    • FAQs
LogoLogo
Resources
Get started
On this page
  • page.setName(name)
Pages & FoldersManaging PagesPage information

Set page name

Was this page helpful?
Previous

Get page title

Next
Built with

page.setName(name)

Set the name of the page.

Syntax

1page.setName(name: string): Promise<null>

Parameters

  • name: string - The new name of the page.

Returns

Promise<null>

A promise that resolves to null.

Example

1// Get Current Page
2const currentPage = await webflow.getCurrentPage() as Page
3
4// Set page name
5await currentPage.setName("My New Page")
6console.log(pageName)

Try this example

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canManagePageSettingsAnyAnyAnyAny