Customization: Difference between revisions
From Vichan Wiki
Jump to navigationJump to search
Line 10: | Line 10: | ||
=== Changing default style and adding more for users to change === | === Changing default style and adding more for users to change === | ||
To change default style, edit ''/inc/config.php'' and find the line <code>$config['stylesheets']['Yotsuba B'] = '';</code> . To add more styles, copy this line <code>$config['stylesheets']['Dark'] = 'dark.css';</code> and change the name as in this case Dark and dark.css, the first part is the name and the second is the style filename. | To change default style, edit ''/inc/config.php'' and find the line <code><nowiki>$config['stylesheets']['Yotsuba B'] = '';</nowiki></code> . To add more styles, copy this line <code>$config['stylesheets']['Dark'] = 'dark.css';</code> and change the name as in this case Dark and dark.css, the first part is the name and the second is the style filename. | ||
== Templates == | == Templates == |
Revision as of 16:57, 28 January 2025
This page covers vichan customization.
Styles
Location
Styles are located in /stylesheets/ and use CSS.
Adding your own style
To add your own style, simply create a file with whatever you want your style to be named and add .css as the file extension.
Changing default style and adding more for users to change
To change default style, edit /inc/config.php and find the line $config['stylesheets']['Yotsuba B'] = '';
. To add more styles, copy this line $config['stylesheets']['Dark'] = 'dark.css';
and change the name as in this case Dark and dark.css, the first part is the name and the second is the style filename.
Templates
Location
Templates are located in /templates/ and use Twig templating system.
Themes
Themes are single click installable extra pages that can be installed within the mod dashboard.