I created 2 subthemes, planned 3. The first one is my default theme, let's call it Sub-default. Until now I used the module Page theme for switching themes dependent on the Drupal path. The switch is done, Drupal picks the correct theme, I can modify block settings etc. But Groundwork always provides the local.css from Sub-default, not from Sub-2 (or Sub-3).

I located my subthemes in differnt folders, frist in the groundwork-folder, then in the theme-folder. Same bug. Finally I installed another theme switching module, ThemeKey. Same result, same bug. So it must be a bug of Groundwork. I switched between different subthemes before, subthemes of Adaptive Themes. Everything worked fine.

I did a lot of work to setup my subthemes, now I can't use them because I can't switch between them, which is necessary on my website. Is there a trick or a workaround for applying the CSS of the choosen subtheme? Note, I'm not a PHP developer.

Thanks,
Reiner

Comments

RFMP’s picture

Title: Theme switching doesn't work » Theme switching doesn't work - Update

Further testings have shown:
Switching to a Groundwork subtheme, Groundwork always provides the CSS-file from the default theme, even if the default theme is not a Groundwork subtheme.

RFMP’s picture

Title: Theme switching doesn't work - Update » Theme switching doesn't work
Status: Active » Fixed

Problem solved. I renamed the CSS-files in the subtheme folders from local.css in sub1.css, sub2.css etc. and included those renamed CSS-files in sub1.info (sub2.info ...). Now I can switch between the themes and get the right CSS-file.

JohnFilipstad’s picture

Status: Fixed » Closed (works as designed)

Thanks for updating the status.