Lately I’ve been wondering how do you create your Site Templates. Sometimes when I create a Site Template I’m rather using PHP for including files or outsource the settings into a separate file.
But how do you do?
Are you also making .php files with your site template. For sure, for a contact form you’re most likely using PHP , isn’t it? Is it allowed in the Site Template Section to upload site templates with PHP Files? Any troubles?
Thanks in advance
I use only .html for the page of the theme (for the contact page as well, and yes the contact form is working) and .php for the scripts (obviously ), because although it takes more time I find it to be a lot easier to customize.
So I guess it’s allowed to use PHP Files in Site Templates. How do you integrate some sort of settings or when your client has modified the template how can he/she get updates without the need of re-modifying again?
An HTML version of your template is required. You can make it in PHP even as the primary version, but you must include an HTML version as well. Thems the rules.
I always include the html files but also some php “helpers” like: contact form script, a php gallery file (it ease up adding images to gallery), timthumb (php image resizer) etc.
I personally would’ve liked if it was a php version where i could include a single menu.php file, footer.php file, header etc. but there are just few users who use this technique so i think it’s better to have all files html (or mostly).
- Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
- Open a support ticket if you would like specific help with your account, deposits or purchases.
- Item Support by authors is optional and may vary. Please see the Support tab on each item page.
Most of all, enjoy your time here. Thank you for being a valued Envato community member.