Check if page uses title as search title

page.usesTitleAsSearchTitle()

Check if the page uses the page title as the search title.

Syntax

1page.usesTitleAsSearchTitle(): Promise<boolean>;

Returns

Promise<boolean>

A Promise that resolves to a boolean value.

Example

1// Get Current Page
2const currentPage = await webflow.getCurrentPage()
3
4// Check title
5const usesTitle = await currentPage?.usesTitleAsSearchTitle()
6
7if (usesTitle){
8 console.log('This page uses its Title as the Search Engine title')
9} else {
10 console.log( "This page has a custom search engine title")
11}

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadPageSettingsAnyAnyAnyAny
Built with