Skip to main content

Timeline for How to add custom CSS to each page

Current License: CC BY-SA 3.0

2 events
when toggle format what by license comment
Jul 26, 2012 at 20:08 comment added Kayote Thats a wonderful & easy to understand explanation. Thanks Kantu. Here is what Ive done. In template.php, Ive added: function THEMENAME_template_preprocess() { if(request_uri == "aboutus") { drupal_add_css ("css/aboutUs.css"); } } While its not working, I suspect the only thing Im doing wrong here is the paths... should the URI be '/aboutus' or without the bracket. Also is the css file path relative to the template.php file? Cheers
Jul 26, 2012 at 19:18 history answered GoodSp33d CC BY-SA 3.0