Hello,

I would like to create subtheme of this theme so that when there is an update, my customized CSS code will not be over written.

I've created something for bass themes before but when I follow the steps outlined at the link below, it does not work.

<a href="http://www.advantagelabs.com/news/2009/09/creating-drupal-subtheme"></a>

Is it possible to something this thing? If so, is there some special trick that I missing?

Thanks.

M

Comments

lilbebel’s picture

Issue summary: View changes
garyebickford’s picture

I got a subtheme working. I think the two key actions were deleting theme-settings.php and (to fix a warning on the page) editing template.php so it contained only "<?php" (plus I added a comment linking to the page where I found this fix: https://www.drupal.org/node/1127452). Of course I had already done the my_theme.info.

lilbebel’s picture

Thank you Gary. I'll check that out. Sorry for my slow response. Been away.

M

Alex777’s picture

Finally for my Nexus subtheme I only created .info file with name/descr/version/base theme declaration and regions and placed the favicon in my subtheme folder. So only 2 files in my folder - .info and favicon.ico
Everything works fine.
I spent a while to make the preface-area show up in my subtheme but the solution was very simple: go to admin's blocks page (admin/structure/block) and place blocks in respective regions (preface-area in my case).

Aptalops’s picture

Hi thanks for your suggestions - what worked for me was to copy the Nexus .info file and make the relevant changes to the file name and the name, description, version and base declarations (base theme is nexus - not nexus_theme). I copied all the Nexus files and folders to my sub-theme's folder except for: template.php and theme-settings.php. As soon as I uploaded either of those two files, my sub-theme would break.

intheweeds’s picture

If you copy all of the Nexus files into your sub-theme folder, wouldn't that overwrite future updates to Nexus? I've done what Alex777 did and as described here: https://www.drupal.org/node/225125 but my sub-theme isn't recognized. (I'm working with style.css.)

Also, when I installed Nexus through the Drupal interface, the Nexus folder was installed into my [website] > sites > all > themes folder. Isn't it supposed to be in the [website] > themes folder?