Search.../

getLogo( )

Gets the site logo file name.

Description

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.

Syntax

function getLogo(): Promise<string>

getLogo Parameters

This function does not take any parameters.

Returns

Fulfilled - An object containing the site logo file name. Rejected - Error message.

Return Type:

Promise<string>

Was this helpful?

Get the site logo file name

Copy Code
1import { Permissions, webMethod } from 'wix-web-module';
2import wixSiteBackend from 'wix-site-backend';
3
4export const getLogo = webMethod(Permissions.Anyone, () => {
5 return wixSiteBackend.generalInfo.getLogo();
6});
7
8// "791f5e_3217d51097ed4ea7a51deaa583cfbe65~mv2.gif"