getLogo( )


Gets the site logo file name.

The getLogo() function returns a Promise that resolves to the site's logo file name information.

The retrieved logo is the logo that has been entered in the General Info section of your site's Dashboard.

Method Declaration
Copy
function getLogo(): Promise<string>;
Request
This method does not take any parameters
Returns
Return Type:Promise<string>
Get the site logo file name
JavaScript
import { Permissions, webMethod } from "wix-web-module"; import wixSiteBackend from "wix-site-backend"; export const getLogo = webMethod(Permissions.Anyone, () => { return wixSiteBackend.generalInfo.getLogo(); }); // "791f5e_3217d51097ed4ea7a51deaa583cfbe65~mv2.gif"
Errors

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

Did this help?