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.
Hi,
I have created a subtheme of touchpro as you did it in your starterkit. Now I want to fill in my own css-additions to this theme. I can see there is a subtheme.css in your example, but using this file has no consequences at all.
So how can I add some css-styles by my own?
cheers
Comments
Comment #1
MatthijsG CreditAttribution: MatthijsG commentedLate answer, but i had the same problem.
Rename the css like your subtheme-name (eg. replace subtheme everywhere for your 'foobar')
Add to template PHP
drupal_add_css(
$theme_path . '/YOURSUBTHEMECSSFILE.css', array(
'preprocess' => variable_get('preprocess_css', '') == 1 ? TRUE : FALSE,
'group' => CSS_THEME,
'media' => 'all',
'every_page' => TRUE,
'weight' => (CSS_THEME+1)
)
);