help with Drupal 6 theme inheritance
I'm hoping to get some help with what should be an easy question: how do I inherit a core theme? After looking at the docs it seemed that by creating a .info file and setting the base theme I would have inheritance set up. I tried that with this: name = development - testing theme based on Garland core = 6.x base theme = garland After activating this theme I lost all styles. The base theme directive seems to do nothing. My theme is in sites/all/themes/garland-dev; garland is in themes/garland. Please advise. -- La perfection est atteinte non quand il ne reste rien à ajouter, mais quand il ne reste rien à enlever. — Antoine de Saint-Exupéry
After activating this theme I lost all styles. The base theme directive seems to do nothing. My theme is in sites/all/themes/garland-dev; garland is in themes/garland. Please advise.
Hello Michael Anderson Use zen theme. You cant inherit all the themes especially core themes like garland because its a default theme used for installation and upgrade process. Read this http://www.nabble.com/Theme-inheritance-broken-td21690633.html http://drupal.org/node/193318 http://drupal.org/node/171194 -- Thanks a lot ----------------------------------------- http://ubuntuslave.blogspot.com/
Michael, This is what I have been using to subtheme the Blueprint theme: name = MySubThemName base theme = blueprint description = MySubThemeName Blueprint subtheme. version = VERSION core = 6.x engine = phptemplate Also, make sure that the base theme is enabled. It seems that Drupal needs the base them enabled to work with it. Thanks, Mark On Feb 21, 2009, at 10:47 AM, Michael Anderson wrote:
I'm hoping to get some help with what should be an easy question: how do I inherit a core theme?
After looking at the docs it seemed that by creating a .info file and setting the base theme I would have inheritance set up. I tried that with this:
name = development - testing theme based on Garland core = 6.x base theme = garland
After activating this theme I lost all styles. The base theme directive seems to do nothing. My theme is in sites/all/themes/ garland-dev; garland is in themes/garland. Please advise.
-- La perfection est atteinte non quand il ne reste rien à ajouter, mais quand il ne reste rien à enlever. — Antoine de Saint-Exupéry -- [ Drupal support list | http://lists.drupal.org/ ]
Did you clear cache (in admin settings performance)? Its certainly needed when you create or change .info files. If subtheming a core theme would be the problem (like the first answer says) you could just copy garland to sites/all/themes and call it garlandcopy and replace garland with garlandcopy for the .info and template.php files. Also check out how Minelli is set u, its a core subtheme of garland. 2009/2/21, Michael Anderson <usufruct@gmail.com>:
I'm hoping to get some help with what should be an easy question: how do I inherit a core theme?
After looking at the docs it seemed that by creating a .info file and setting the base theme I would have inheritance set up. I tried that with this:
name = development - testing theme based on Garland core = 6.x base theme = garland
After activating this theme I lost all styles. The base theme directive seems to do nothing. My theme is in sites/all/themes/garland-dev; garland is in themes/garland. Please advise.
-- La perfection est atteinte non quand il ne reste rien à ajouter, mais quand il ne reste rien à enlever. — Antoine de Saint-Exupéry
-- Verzonden vanaf mijn mobiele apparaat Hans Rossel KOBA Webdevelopment Kerkstraat 228 9050 Gent 09-334.52.60 0472-79.32.16 www.koba.be info@koba.be
participants (4)
-
KOBA | Hans Rossel -
Mark Shropshire -
Michael Anderson -
sivaji j.g