I am trying to incorporate Cassiopeia's own default code from index.php into my own custom template index-file, partly because I need Font Awesome 6 to be connected to my own template.
However, this part of the code throws an error:
The error reads:
However, this part of the code throws an error:
Code:
// Enable assets$wa->usePreset('template.cassiopeia.' . ($this->direction === 'rtl' ? 'rtl' : 'ltr')) ->useStyle('template.active.language') ->registerAndUseStyle($assetColorName, 'global/' . $paramsColorName . '.css') ->useStyle('template.user') ->useScript('template.user') ->addInlineStyle(":root {--hue: 214;--template-bg-light: #f0f4fb;--template-text-dark: #495057;--template-text-light: #ffffff;--template-link-color: var(--link-color);--template-special-color: #001B4C;$fontStyles}");
Should I replace template.cassiopeia with something else, or is it something I should import into my own template? If so, how do I do this properly?There is no "template.cassiopeia.ltr" asset of a "preset" type in the registry
Statistics: Posted by SocketPup — Thu May 02, 2024 7:56 am