khinester Posted November 17, 2009 Share Posted November 17, 2009 Hello,I want to put the http://developer.yahoo.com/yui/3/cssreset/ as the first css on the header.tplI can do this by changing the header.tpl, but I wanted to include it as part of the $css_files list.How do I do this?Thanks Link to comment Share on other sites More sharing options...
khinester Posted November 17, 2009 Author Share Posted November 17, 2009 Would this change break anything? diff --git a/header.php b/header.php index 876a40f..7502c3b 100644 --- a/header.php +++ b/header.php [spam-filter] -6,8 +6,11 [spam-filter] header('P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"'); require_once(dirname(__FILE__).'/init.php'); /* CSS */ -$css_files[_THEME_CSS_DIR_.'global.css'] = 'all'; - +$css_files = array( + _THEME_CSS_DIR_.'reset-min.css' => 'all', + _THEME_CSS_DIR_.'global.css' => 'all' or for production: diff --git a/header.php b/header.php index 876a40f..1c7554c 100644 --- a/header.php +++ b/header.php [spam-filter] -6,8 +6,11 [spam-filter] header('P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"'); require_once(dirname(__FILE__).'/init.php'); /* CSS */ -$css_files[_THEME_CSS_DIR_.'global.css'] = 'all'; - +$css_files = array( + 'http://yui.yahooapis.com/3.0.0/build/cssreset/reset-min.css' => 'all', + _THEME_CSS_DIR_.'global.css' => 'all' Link to comment Share on other sites More sharing options...
krapivnik-sm Posted June 20, 2011 Share Posted June 20, 2011 Note: khinester 's code is from FrontController.phpTo: khinester. Yes, it will work. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now