Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 2569

General Questions/New to Joomla! 5.x • Issue with Cassipeia index.php in my own template

$
0
0
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:

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}");
The error reads:
There is no "template.cassiopeia.ltr" asset of a "preset" type in the registry
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?

Statistics: Posted by SocketPup — Thu May 02, 2024 7:56 am



Viewing all articles
Browse latest Browse all 2569

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>