jleesaxon Posted May 27, 2014 Share Posted May 27, 2014 I've created a new CSS file in "themes/[theme name]/css/", but how do I get my site to actually use it? Link to comment Share on other sites More sharing options...
dioniz Posted May 27, 2014 Share Posted May 27, 2014 Add it to header.tpl like this: <link rel="stylesheet" href="{$css_dir}your.css" type="text/css" media="{$media}" /> Link to comment Share on other sites More sharing options...
jleesaxon Posted May 27, 2014 Author Share Posted May 27, 2014 Thanks. Two questions: 1.) The file needs to be read after global.css, so it will override global.css, will this work for that? 2.) Just curious, why aren't those links needed for all the standard css files? There's gotta be a list in some controller file somewhere, right? Link to comment Share on other sites More sharing options...
dioniz Posted May 28, 2014 Share Posted May 28, 2014 1. ) I put it after {foreach from=$css_files key=css_uri item=media} <link rel="stylesheet" href="{$css_uri}" type="text/css" media="{$media}" /> {/foreach} 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