Use Open Graph image as search image

page.useOpenGraphImageAsSearchImage(use)

Use the Open Graph image as the search image.

Syntax

1page.useOpenGraphImageAsSearchImage(use: boolean): Promise<null>;

Parameters

  • use: boolean - Whether to use the Open Graph image as the search image.

Returns

Promise<null>

A Promise that resolves to null.

Example

1// Get current page
2const currentPage = await webflow.getCurrentPage()
3
4// Set Open Graph image as search image
5await currentPage?.useOpenGraphImageAsSearchImage(true)

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canManagePageSettingsAnyAnyAnyAny
Built with