Customization: Difference between revisions
From Vichan Wiki
Jump to navigationJump to search
(Created page with "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, co...") |
m (linked to new page about creating a homepage) |
||
(2 intermediate revisions by one other user not shown) | |||
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 $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. | 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 == | ||
Line 20: | Line 20: | ||
Themes are single click installable extra pages that can be installed within the mod dashboard. | Themes are single click installable extra pages that can be installed within the mod dashboard. | ||
[[Home]] |
Latest revision as of 15:21, 24 February 2025
This page covers vichan customization.
Styles[edit | edit source]
Location[edit | edit source]
Styles are located in /stylesheets/ and use CSS.
Adding your own style[edit | edit source]
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[edit | edit source]
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[edit | edit source]
Location[edit | edit source]
Templates are located in /templates/ and use Twig templating system.
Themes[edit | edit source]
Themes are single click installable extra pages that can be installed within the mod dashboard.