page.getTitle()

Get the title of the page.

Syntax

1page.getTitle(): Promise<string>

Returns

Promise<string>

A promise that resolves to the title of the page.

Example

1// Get Current Page
2const currentPage = await webflow.getCurrentPage() as Page
3
4// Get page title
5const pageTitle = await currentPage.getTitle()
6console.log(pageTitle)

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadPageSettingsAnyAnyAnyAny
Built with