Set page title

page.setTitle(title)

Set the title of the page.

Syntax

page.setTitle(title: string | null): Promise<null>

Parameters

  • title: string | null - The new title of the page.

Returns

Promise<null>

A promise that resolves to null.

Example

// Get Current Page
const currentPage = await webflow.getCurrentPage() as Page
// Set page Title
await currentPage.setTitle("My New Title")
console.log(pageTitle)

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canManagePageSettingsAnyAnyAnyAny