I would like to add some custom stylesheets for specific theme.
for example: Bartik is default and Seven is the Administration theme.
In this case, I want to add some custom styles for only Bartik front-end theme.
How can I customize the following code for the Bartik theme?
<?php
/**
* Implements hook_init().
*/
function mymodule_init() {
$path = drupal_get_path('module', 'mymodule');
drupal_add_css(
$path . '/custom.css',
array(
'group' => CSS_THEME,
'every_page' => TRUE,
)
);
}
?>