...
File/Folder Name | Description | Required |
---|---|---|
assets/banners/ | Will hold any banners an Admin uploads to your theme. | No |
assets/favicons/ | If an Admin changes the site favicon, it will be placed here. | No |
assets/logos/ | Theme's logo, admin can change it in TM. You can put default logo of your theme here. Allowed extensions: PNG and JPG (PNG is prefer than JPG, so if you put both | No |
autoload.js | If your theme requires Javascript you can use this file for that.<br> | No |
autoload.css | CSS for your theme. | Yes |
autoload.less | If you wish to work with LESS, phpFox supports compiling less variables from the variables.less file. If you use this file, make sure your IDE or Text Editor supports compiling LESS files to CSS. Additional information on how to work with phpFox and LESS can be found here. | No |
variables.less | Store your LESS variables here if you plan to use them in autoload.less. For additional information about LESS variables, check out our variable list. | No |
html/layout.html | Your HTML goes here and we use Twig as our template engine. | No |
theme.png | Screenshot of your theme, which is displayed in the AdminCP. | Yes |
theme.json | JSON variables used to load your theme in phpFox | Yes |
phrase.json | Define all phrases that use in your theme. When developing theme, you should enable Techie mode, your phrases in | No |
less/*.less | In case you want to override Core Less Source. | No |
Disable CSS Caching
When you are working with your theme it might be easier to make sure the browser does not cache your CSS changes. To get this working, navigate to the folder PF.Base/file/settings/. In that folder, if you don't have this file create a new file called debug.sett.php. Paste the following
...