puigherm Posted May 17, 2017 Share Posted May 17, 2017 Hi! I'm trying to install different font sources in PrestaShop 1.7.1 and I do not get. I'm not familiar with symfony and can't see which folder I have to leave the fonts and in what css file I've to use the font face. Someone can give me help? Link to comment Share on other sites More sharing options...
Aurelink_ Posted October 31, 2017 Share Posted October 31, 2017 Hi ! there is two main ways, First of all you can add webfont from google font and call the link on head.tpl (themes/your_theme/templates/_partials/...) Second way : add from css : i've created a folder called "fonts" on my "assets" folder, then from my custom.css file on my css folder i did that : 1st step : create a fonts' folder 2nd step : call your font with @font-face on your css file 3rd step : use the good path to call your font. @font-face { font-family: 'Gelfling SF'; src: url('../fonts/GelflingSF.eot'); src: url('../fonts/GelflingSF.eot?#iefix') format('embedded-opentype'), url('../fonts/GelflingSF.woff') format('woff'), url('../fonts/GelflingSF.ttf') format('truetype'); font-weight: normal; font-style: normal; } you can put your folder folder everywhere you want but the path must match i hope it help Link to comment Share on other sites More sharing options...
Nuno Aparicio Posted February 8, 2018 Share Posted February 8, 2018 (edited) yes but after updating the head.tpl file, what should i change in theme.css to call my new font? i want to change my font in my entire website... Edited February 8, 2018 by Nuno Aparicio (see edit history) 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