255 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+4 more
BuchmannDesign says

It was my assumption that HTML templates are ONLY HTML and CSS , with no php scripting. But this morning I woke up with the thought that if an HTML template had a header.php, footer.php, etc it would really simplify a template for creation and for the buyer.

And technically it would still be an HTML /CSS template, and static too since it’s not Wordpress or a CMS .

And it could be taken further by defining site wide php variables to control and customize layout a bit.

Are other’s doing this with their HTML templates, and is this allowed? I think if i modify my existing template to use some PHP , it would be a LOT easier to set up.

255 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+4 more
BuchmannDesign says

I may have posted too soon…

The html pages would need a .php extension in order for the header.php, footer.php, etc to work, unless the buyer modifies their .htaccess file, in which case they could use the .html extension.

So can HTML templates actually be .php files, as long as the site is still technically a static site?

Sorry if this is a dumb question! :)

922 posts
  • Has referred 500+ members
  • Has sold $1M+ on Envato Market and is now a Power Elite Author
  • Has been a beta tester for an Envato feature
  • Has collected 500+ items on Envato Market
+13 more
MDNW says

Interesting idea – I for one would love to implement a lot of my templates in PHP , but it’s just not reasonable as it cuts down the potential buyer audience significantly – anyone who isn’t comfortable with PHP would be alienated. Still worth bringing up though. Does anyone have more experience in this matter?

255 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+4 more
BuchmannDesign says

It would make it so much easier for the buyer, even if they don’t know php. The help file would just explain what header.php and footer.php are and how they work. That’s far easier than having to edit every page in a site when you modify the header.

364 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+4 more
chrisfay says

I’ve considered this before, although as a compliment to a pure html site. For instance, you could provide both the static version and a pre-coded php version with enhanced functionality and complete integration of things like twitter or other modules.

But only providing PHP files in my opinion is moving too much into the implementation, which kind of defeats the purpose of a html base template.

24 posts
  • Has been part of the Envato Community for over 5 years
  • Located in Canada
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
NathanCH says

It’s a great idea. An additional problem would be that most people edit their sites probably using WYSIYG editors such as Dreamweaver and then attempt to view the files offline which is fine for .html, but you can’t do that for .php.

But on the other hand, it’s a good idea if the know a bit about php

by
by
by
by
by
by