By zoon_unit on
This is really strange. I've upgraded to Drupal 5 and have my themes in the Sites/all/themes folder. But for a couple of themes, subfolders in that theme folder are showing up on the admin/themes page, such as:
sites/all/themes/multiflex37/css
This, of course, is not a sub-theme! As I understand it, to have a subtheme, you must name a subfolder the theme name, with a dash, and then something else, like "multiflex-fixed" for instance.
So why would a "css" subfolder be showing up on my admin/themes page???????
Comments
files
hi,
as you see in garland and minelli you can call your subthem whatever you want.
The system detects it as subtheme if it contains a file style.css or template.php.
am I correct?
Yeah, the MultiFlex css
Yeah, the MultiFlex css folder shows up because of the style.css file inside it. Since it isn't automatically being called by the $styles variable anyway the call is hardcoded in the page.tpl.php file, so you can easily change it. If you want to get rid of the css folder in your theme list, one way is to just go in and change the style.css filename to something else (like styles.css or multiflex.css) and then change it to the same name in your page.tpl.php file. It will still get called properly but it won't look like a subtheme to drupal anymore.
I think that ideally that should be handled by template.php using drupal_add_css rather than make the hardcoded call in page.tpl.php. You may want to submit an issue and patch to the theme issue queue.
Drupalize.Me, The best Drupal training, available all the time, anywhere!