As I understand there are Drush commands for Adaptive Theme, Omega, Zen and maybe other themes for creating subthemes, but is there a more generic module/way to create/duplicate a theme? It would be nice to give clients a way to mirror their theme within the interface.

  • I don't think so, the closest I've seen is drupal.org/project/module_builder which can be hard to make work, but claims rudimentary support for theme generation.
    – bloke_zero
    Commented Jan 22, 2015 at 9:21
  • If found this #!/bin/bash script reference to the ZEn them that looks like it would serve as base - drupal.org/node/276120 - although that brings up the question "can a bash script be run from PHP/Drupal" and/or why bother if it can be done in PHP.
    – Cymatical
    Commented Jan 31, 2015 at 21:05

1 Answer 1


No but you can copy the theme folder and then replace the name of the theme in all hooks and of course rename yourtheme.info to yourcopy.info. in order not to miss any hook you may use a prog like wingrep and search-replace the yourtheme string

  • Thank you, I am aware of this but it does not give client "feel good" perception of Drupal in my experience. Clients can use "save as" on their documents or copy folders of docs and rename folders/ files so they expect similar simplicity or i would like to give that option.
    – Cymatical
    Commented Jan 22, 2015 at 2:12
  • Seems module builder module might provide some tricks...
    – Cymatical
    Commented Jan 23, 2015 at 13:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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