page.setOpenGraphTitle(title)

Sets the Open Graph title of the page.

Syntax

1page.setOpenGraphTitle(title: string): Promise<null>

Parameters

  • title: string - The new Open Graph title for the page.

Returns

Promise<null>

Returns null if successful.

Example

1// Get Current Page
2const currentPage = await webflow.getCurrentPage() as Page
3
4// Set Open Graph Title
5await currentPage.setOpenGraphTitle("My New Title")
6
7// Print results
8const openGraphTitle = await currentPage.getOpenGraphTitle()
9console.log("Open Graph Title", openGraphTitle)

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canManagePageSettingsAnyAnyAnyAny
Built with