getSiteDisplayName( )


Gets the site display name.

Retrieves the site display name, which is the name that has been entered in the Website Settings section of the site's Dashboard.

Method Declaration
Copy
function getSiteDisplayName(): string;
Request
This method does not take any parameters
Returns
Return Type:string
Get the site display name
JavaScript
import wixSiteFrontend from "wix-site-frontend"; const siteName = wixSiteFrontend.getSiteDisplayName(); // "My Site"
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?