page.setSearchImage(url)

Set the search image of the page.

Syntax

1page.setSearchImage(url: string): Promise<null>;

Parameters

  • url: string - The URL of the image to set 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 search image
5await currentPage?.setSearchImage('https://example.com/image.jpg')

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canManagePageSettingsAnyAnyAnyAny
Built with