getSiteThemeHtml( )


Gets the CSS code of the site's theme. Use the getSiteThemeHtml() function to get an HTML element containing the CSS code of a site's theme colors and fonts. Use this function when embedding a custom element in a Wix site where the page's stylesheet is inaccessible, such as when using a shadow root or an internal iframe.

Method Declaration
Copy
Method Parameters
optionsgetSiteThemeHtmlOptions

The options used when getting the HTML element.

Returns
Return Type:Promise<string>
Did this help?