Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hey,
So I'm looking to sub-theme TouchPro in order to keep updates clean.
style.css is being added in template.php. However, when you sub-theme TouchPro, it will look for style.css in the sub-theme and not the original in TouchPro.
This can be changed by making the following change:
$path = drupal_get_path('theme', 'touchpro');
drupal_add_css(
$path . '/styling/css/style.css', array(
'preprocess' => variable_get('preprocess_css', '') == 1 ? TRUE : FALSE,
'group' => CSS_THEME,
'media' => 'screen',
'every_page' => TRUE,
'weight' => CSS_THEME-2
)
);
instead of using
$theme_path . '/styling/css/style.css', array(
Thanks!
Comments
Comment #1
JurriaanRoelofs CreditAttribution: JurriaanRoelofs commentedthx will look at this
Comment #2
JurriaanRoelofs CreditAttribution: JurriaanRoelofs commentedFix implemented in next release
http://www.tomscott.com/everydayim/#subtheeming