Gets the site display name.
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.
function getSiteDisplayName(): Promise<string>;
import { Permissions, webMethod } from "wix-web-module";
import wixSiteBackend from "wix-site-backend";
export const getSiteDisplayName = webMethod(Permissions.Anyone, () => {
return wixSiteBackend.generalInfo.getSiteDisplayName(); // "My Awesome Site"
});
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.