I am working on my first Site Template and I was curious if it had to be static HTML . I would like to utilize some php includes for things like the navigation and I think it would be a lot easier (for both me and the purchaser) to edit a single file than having to go through every single page just to change something in the nav/footer.
I’m just curious how other people have gotten around this issue with a Site Template. Obviously a Wordpress theme would be easier because it’s all dynamic but i’m wondering about the Site Templates, specifically. Is it typically all 100% static html?
when you use a contact form in any way its mostly a .php file. i dont think this would be a problem. aslong as you have a detailed documentation on how to tweak this.
feel free to correct me if im wrong
Yes that is perfectly fine. Use the PHP function “include( )” within your template file. I find this works well. More info can be found on php.net. Alternativly, the full functions i use is in both my scripts on CodeCanyon . You can always purchase those .
Please follow me on twitter. Special deals will be given to users of twitter, on a prize bases. For example, once a month (or so, i havnt quite decided) I will allow a user to get a FREE script of their choice, coded by me, which does not appear on CodeCanyon!
Come on, stop spamming the forums with this “Follow me on Twitter” thing. I’m sure there are other ways of promoting your work.
By the way – I think that TylorSkory knows how to use include function, his concern is weather it is allowed on TF in site templates category.
I had a similar thread, you can check it here, hope it will help http://themeforest.net/forums/thread/php-in-xhtml-templates/19066
...his concern is weather it is allowed on TF in site templates category.
Yes that is perfectly fine. Use the PHP function “include( )” within your template file.
I just gave my opinion and help for him. I dont know if he knows it or not. Im just trying to help the guy out.
Cool! Thanks for all the info everyone! Also, freshface, the link to your previous thread was really helpful too. Thanks.
np Tylor please use include function in site templates, because more authors do that, the more site templates will be more useful. It’s very easy to explain it, even to a newbie, plus it saves a lot of time for everyone afterall. It’s win win, we just need to teach the begginers
//EDIT: Also, i have experienced almost no support requests from buyers of my HTML files which means they are much more skilled than the wp buyers for instance.
For my ‘Dark n Clean’ template (which is my first HTML full site template) I included both a pure html version and a .php version with includes.
In my documentation I only showed how to use the php version though and recommended that the user upgrades to a server that supports php because its so much easier with include().