Download & Extend

Load CSS file based on URL (or other context)?

Project:Zen
Version:7.x-5.x-dev
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Is there a way to choose weather or not a CSS file is loaded in a site? I need to prevent zen_midnight.css loading for a section of my site. Thanks

Comments

#1

Version:7.x-5.1» 7.x-5.x-dev
Status:active» fixed

You should add a hook_css_alter() to your sub-theme's template.php. http://api.drupal.org/api/drupal/modules%21system%21system.api.php/funct...

#2

Im more of a themer so it seemed easier for me to solve this with the context module. Thanks

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.