So Im planning to use Html5Boilerplate as a base to build a new WP Theme on. The Boilerplate comes with the Builder, a handy Tool for minifiying, concatenating and compressing ones Website for obvious reasons: speed/performance-gain, easier mobile access and so on.

I would very much like to use this feature with my theme. Problem: The builder outputs the processed files into a subdir /publish. Without WP one could use a .htaccess rule to reroute the base domain, e.g. mysite.net to mysite.net/publish. This is the method proposed by Html5Boilerplate.

Since I can't possibly use this approach in a Theme, I would need a way to tell WP to go looking for the Theme's files in the /publish subdir of the actual Theme dir. Anyone know a way to do that?

Alternatively, is there a way to tell The build script to look for the source Files in a subdir, and to subsequently publish the files into the theme root?


There are several starter themes out there based on HTML5 Boilerplate, so you may find that forking one of them is a better option that rolling your own.

|improve this answer|||||

Looks like someone has the documentation to assist with this:


|improve this answer|||||
  • Thanks for anwering, thats a usefukl link! This is another issue that arises with WP and h5bp, but changing the style / js reference paths that the builder outputs is not my original problem. I need builder to deploy to my theme root directory, instead of the /publish subdirectory. – Anatol Aug 16 '12 at 12:50
  • 1
    I was looking over the config/project.properties. On line 104 there look like the place where you would override the setting for the publish directory – nvwd Aug 16 '12 at 13:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.