Jump to content

Installing fonts in prestashop 1.7.1


puigherm

Recommended Posts

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

  • 5 months later...

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

  • 3 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...