Click or drag to resize
CssLinkHelperGetThemeCssUrl Method
Gets the URL for the Theme CSS file. Based in ~/App_Themes/[Theme] or ~/App_Themes/Default.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax
C#
public static string GetThemeCssUrl(
	string theme,
	string fileName,
	bool useOnlySpecifiedTheme = false
)

Parameters

theme
Type: SystemString
Stylesheet theme
fileName
Type: SystemString
Name of the stylesheet file
useOnlySpecifiedTheme (Optional)
Type: SystemBoolean
If true, then return the url only for the specified theme, if the file not found return null

Return Value

Type: String
See Also