Search...
getSiteDisplayName( )
Gets the site display name.
Description
The getSiteDisplayName()
function returns a Promise that resolves to the site's
display name information.
The retrieved display name is the name that has been entered in the General Info section of your site's Dashboard.
Syntax
function getSiteDisplayName(): Promise<string>
getSiteDisplayName Parameters
This function does not take any parameters.
Returns
Fulfilled - An object containing the site display name information. Rejected - Error message.
Return Type:
Promise<string>
Was this helpful?
Get the site display name
Copy Code
1import wixSiteBackend from 'wix-site-backend';23export function getSiteDisplayName() {4 return wixSiteBackend.generalInfo.getSiteDisplayName(); // "My Awesome Site"5}