If you would like to create a template for Nameless v2, you've come to the right place.
- Go to
/custom/templates
and copy/paste the DefaultRevamp
folder, and then rename the copied folder to the name of your template.
- Navigate to your template folder (
/custom/templates/your-template
), and find template.php
file, there edit the following:
- At lines 12 and 152 rename
DefaultRevamp_Template
to YourTemplate_Template
.
- At lines 27-30 change
name
and author
values to values of your template name and yourself.
- After you're finished with the steps above, in your website navigate to StaffCP > Layouts > Templates, and click "Install", after that you should be able to see your template.
- Active it by clicking "Enable" and "Make Default".
- That's it, now feel free to edit the HTML in
.tpl
files, CSS, JS, fonts and other files in the appropriate files in your template folder.
- You can edit CSS imports at lines 45-47 (
addCSSFiles
array), and JS imports at lines 49-51 (addJSFiles
array).
- When adding your own CSS or JS framework (or using the existing ones), don't write your code in CSS/JS files of those frameworks, instead create your own (or use existing) files where you overwrite/use the code.