I'm trying to get a 'local.css' file to work in the awesome Wilderness template. I've tried to add a line to the .info file to include it as a stylesheet--nothing. Should I name my file 'style.local.css'? Suggestions please.

Thank you.

Comments

minoxes’s picture

There are css files in the theme pack, look in drupal\themes\wilderness\ and you'll find the file.

bkmatwa’s picture

Thanks for the reply!

OK, either I'm not looking in the wrong location or its not there. Where exactly is the theme pack you are talking about? Is it in the downloaded files or out on the drupal.org site? I've checked both areas and nothing there. Can you please either give the complete URL to the theme pack or the file location in the Wilderness theme I downloaded. Appreciate it.

minoxes’s picture

it's in the wilderness folder that you downloaded when installing the theme.

bkmatwa’s picture

No such folder in my downloaded version of the Wilderness theme. Just to make sure I downloaded it again and after extracting the files--no such folder. I downloaded the Beta1 version that is from Drupal.org (themes)--do you have a different version?

Thanks again. Appreciate your help.

Ashford’s picture

The .css files are in ../sites/all/themes/wilderness, not in a separate subfolder.

bkmatwa’s picture

Thank you for the location of the .css file--got that one down. I'm not sure if my original question is understood here...how can I use this theme to allow other .css files? I'm currently using the standard name "style.css" that is included with the theme, but I'm wanting to create my own style sheet to work along (and sometimes over-ride) the set styles. I've tried to alter the "wilderness.info" file to include my style sheet titled "local.css" but didn't work.

As mentioned in earlier messages here, there is no "bonus pack" of style sheets and only one style sheet at a time seems to work right now. Thanks to everyone's help. Any other ideas?

Ashford’s picture

Upload your css file to the /wilderness folder. Add the css line to your info file. Careful. If you use both style sheets and duplicate commands, there may be conflicts.

wilderness.info
stylesheets[all][] = style.css
stylesheets[all][] = my_style.css

Where did I learn about how to do this? I would recommend everyone who wants a custom theme to start with the Zen module.

Excerpt from the Zen theme module's template.php file.

/*
* Add any conditional stylesheets you will need for this sub-theme.
*
* To add stylesheets that ALWAYS need to be included, you should add them to
* your .info file instead. Only use this section if you are including
* stylesheets based on certain conditions.
*/
/* -- Delete this line if you want to use and modify this code
// Example: optionally add a fixed width CSS file.
if (theme_get_setting('zen_custom_fixed')) {
drupal_add_css(path_to_theme() . '/layout-fixed.css', 'theme', 'all');
}
// */

bkmatwa’s picture

Yes! It works. Thank you so much Ashford. Appreciate the great information.

agileware’s picture

Status: Active » Closed (fixed)