-
2 weeks 2 days
-
2 weeks 4 days
-
4 weeks 2 days
-
4 weeks 5 days
-
4 weeks 6 days
Automatic Zen Subtheme
As a devleoper I also deal with theming sites and as far as theming is concerned, I really like Zen as my base theme.
On my work today, I was assigned to create a theme for some mockups that client has made. So I went ahead and visit the Zen link to download it. After downloading, like most of what's happening in Drupal, I don't memorize or I haven't yet the steps in creating the subtheme. So I browse the docs for creating a subtheme and there was a link at the top saying how to automate the process.
Turns out there are two ways, the first one was by using a module. Its a bit extreme for me to install that module just to create a subtheme so I go for the 2nd option which is a small shell script. Saved it on a file named zensubtheme, put it on one of my local path then change its permission so its executable.
I didn't really read much of the docs on how it works but I just navigate to my themes directory and since the script is on my path, lets say the subtheme will be named "My Site" I just typed:
110:themes marconi$ zensubtheme
Enter a human-readable subtheme name:
Helipad Theme
Choose a page layout type [f]ixed or [l]iquid for subtheme helipad_theme: f
110:themes marconi$
And then I have my newly created subtheme.

Facebook
Twitter
Post new comment