0

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.

2
  • 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
    Jan 22 '15 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
    Jan 31 '15 at 21:05
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

2
  • 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
    Jan 22 '15 at 2:12
  • Seems module builder module might provide some tricks...
    – Cymatical
    Jan 23 '15 at 13:52

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.