-
Drupal Themes - Default CSS
Rather than adding CSS code to your theme you can add custom CSS for your module code itself by using: drupal_add_css.
Here’s an example of hook_init in admin_menu module:
$path = drupal_get_path('module', 'admin_menu');
drupal_add_css($path .'/admin_menu.css', 'module', 'all', FALSE);
Add a reference to the CSS path in your theme’s .info file if you want just custom CSS at the theme level
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules