nickosn Posted February 18, 2015 Share Posted February 18, 2015 Hi, I am trying to add fontawsome to our theme. So I copied th font dir from default-bootstrap to our theme and copied the css font-awesome dir to our css folder Should prestashop (1.6) pickup the css automatically or do I have to do add something to the header.tpl file ? Kind Regards Link to comment Share on other sites More sharing options...
NemoPS Posted February 18, 2015 Share Posted February 18, 2015 Well no, you have to include css in your main global.css file. If you are not using sass, you can try with @import, or just copy over all styles making sure you reference the correct font files path Link to comment Share on other sites More sharing options...
nickosn Posted February 18, 2015 Author Share Posted February 18, 2015 Hi Nemo1, Is that the way default-bootstrap does it? using @import seems not the best idea. What if I add a <link> in the headers.tpl ? What code could I use ? Kind Regard Link to comment Share on other sites More sharing options...
NemoPS Posted February 20, 2015 Share Posted February 20, 2015 Well yes, you can use the link as well, of course, just get the absolute url pointing there on your site and add it No need to use variables in this case, you can just drop it in Link to comment Share on other sites More sharing options...
nickosn Posted February 20, 2015 Author Share Posted February 20, 2015 I added <link rel="stylesheet" href="{$css_dir}font-awesome/font-awesome.css" type="text/css" media="{$media}" /> <link rel="stylesheet" href="{$css_dir}font-awesome/font-awesome-ie7.css" type="text/css" media="{$media}" /> to the headers.tpl file and seems to be OK. Had to change the ../ to ../../ in the css file itself in order to work ok Thank 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